mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +01:00
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:
parent
c125335ef0
commit
743cdd0bea
@ -141,10 +141,6 @@ export class ServiceWorkerHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async preventConcurrentSessionAccess(sessionId) {
|
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});
|
return this._sendAndWaitForReply("closeSession", {sessionId});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user