mirror of https://github.com/vector-im/riot-web
Move navigator message listener registration to be synchronously attached (#28340)
to silence Chrome warning Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/28384/head
parent
d7d96b6b8b
commit
c9d9c421bc
|
@ -54,8 +54,8 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||
return;
|
||||
}
|
||||
|
||||
await registration.update();
|
||||
navigator.serviceWorker.addEventListener("message", this.onServiceWorkerPostMessage.bind(this));
|
||||
await registration.update();
|
||||
}
|
||||
|
||||
private onServiceWorkerPostMessage(event: MessageEvent): void {
|
||||
|
|
Loading…
Reference in New Issue