From 7760356db10fcb323bf6674514eb5d1cf7bf0a0d Mon Sep 17 00:00:00 2001 From: Todd Tanner Date: Mon, 15 Jul 2024 17:50:40 -0400 Subject: [PATCH] Demo update --- BlazorServiceWorkerDemo/Services/PWAServiceWorker.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BlazorServiceWorkerDemo/Services/PWAServiceWorker.cs b/BlazorServiceWorkerDemo/Services/PWAServiceWorker.cs index 846a865..8683f18 100644 --- a/BlazorServiceWorkerDemo/Services/PWAServiceWorker.cs +++ b/BlazorServiceWorkerDemo/Services/PWAServiceWorker.cs @@ -72,9 +72,13 @@ protected override async Task ServiceWorker_OnInstallAsync(ExtendableEvent e) } // optionally skip waiting and claim all clients + + JS.Log(". ServiceWorker_OnInstallAsync", self); await self!.SkipWaiting(); using var clients = self.Clients; + JS.Log(".. ServiceWorker_OnInstallAsync", clients); await clients.Claim(); + JS.Log("< ServiceWorker_OnInstallAsync"); } protected override async Task ServiceWorker_OnActivateAsync(ExtendableEvent e)