mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't assume options
This commit is contained in:
parent
3f840d9d33
commit
174fd3ea4a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user