mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-3405 fix: skip update request on service worker first installation (#1629)
This commit is contained in:
@@ -49,7 +49,11 @@ export class ServiceWorkerService {
|
||||
|
||||
|
||||
private registerSkipWaitingPrompt(workbox: Workbox): void {
|
||||
workbox.addEventListener('controlling', async () => {
|
||||
workbox.addEventListener('controlling', async event => {
|
||||
if (!event.isUpdate) {
|
||||
return;
|
||||
}
|
||||
|
||||
const updateAccepted = await this.requestUpdate();
|
||||
|
||||
if (updateAccepted) {
|
||||
|
||||
Reference in New Issue
Block a user