don't assume options

This commit is contained in:
Bruno Windels 2020-04-22 20:47:46 +02:00
parent 3f840d9d33
commit 174fd3ea4a

View file

@ -70,7 +70,7 @@ export class HomeServerApi {
body: bodyString,
});
if (options.timeout) {
if (options && options.timeout) {
const timeout = this._createTimeout(options.timeout);
// abort request if timeout finishes first
timeout.elapsed().then(