don't assume options
This commit is contained in:
parent
3f840d9d33
commit
174fd3ea4a
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Reference in a new issue