Make the types happy
parent
69745bbd40
commit
2fa8b0f8b2
|
@ -69,7 +69,7 @@ let widgetApi: WidgetApi;
|
||||||
readyPromise = Promise.all([
|
readyPromise = Promise.all([
|
||||||
widgetApi.waitFor<CustomEvent<IWidgetApiRequest>>("im.vector.ready")
|
widgetApi.waitFor<CustomEvent<IWidgetApiRequest>>("im.vector.ready")
|
||||||
.then(ev => widgetApi.transport.reply(ev.detail, {})),
|
.then(ev => widgetApi.transport.reply(ev.detail, {})),
|
||||||
widgetApi.waitFor("ready"),
|
widgetApi.waitFor("ready").then<void>(),
|
||||||
]);
|
]);
|
||||||
widgetApi.start();
|
widgetApi.start();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue