mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
always reply here
This commit is contained in:
parent
5d71b655ad
commit
017d3818eb
@ -173,12 +173,12 @@ self.addEventListener('message', (event) => {
|
|||||||
self.skipWaiting();
|
self.skipWaiting();
|
||||||
break;
|
break;
|
||||||
case "haltRequests":
|
case "haltRequests":
|
||||||
event.waitUntil(haltRequests().then(() => reply()));
|
event.waitUntil(haltRequests().finally(() => reply()));
|
||||||
break;
|
break;
|
||||||
case "closeSession":
|
case "closeSession":
|
||||||
event.waitUntil(
|
event.waitUntil(
|
||||||
closeSession(event.data.payload.sessionId, event.source.id)
|
closeSession(event.data.payload.sessionId, event.source.id)
|
||||||
.then(() => reply())
|
.finally(() => reply())
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user