ask the new version to the new and not old service worker
This commit is contained in:
parent
73c433ec3d
commit
2de61c5928
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ export class ServiceWorkerHandler {
|
|||
if (document.hidden) {
|
||||
return;
|
||||
}
|
||||
const version = await this._sendAndWaitForReply("version");
|
||||
const version = await this._sendAndWaitForReply("version", null, this._registration.waiting);
|
||||
if (confirm(`Version ${version.version} (${version.buildHash}) is available. Reload to apply?`)) {
|
||||
// prevent any fetch requests from going to the service worker
|
||||
// from any client, so that it is not kept active
|
||||
|
|
Reference in a new issue