safari is tooo fast and skips it when it shouldn't

also, I've never had the registration fail, seems very unlikely
This commit is contained in:
Bruno Windels 2020-10-16 13:26:19 +02:00
parent c125335ef0
commit 743cdd0bea

View File

@ -141,10 +141,6 @@ export class ServiceWorkerHandler {
}
async preventConcurrentSessionAccess(sessionId) {
// don't block if we didn't manage to install service worker
if (!this._registration) {
return Promise.resolve();
}
return this._sendAndWaitForReply("closeSession", {sessionId});
}
}