Skip to content

Commit c19cc34

Browse files
committed
Added missing await to fix new window bug
1 parent 04b926b commit c19cc34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SpawnDev.BlazorJS.WebWorkers/WebWorkerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ private void AddIncomingPort(MessagePort incomingPort)
906906
// use client.openWindow
907907
// this only works in specific circumstances
908908
// typically used inside a notifiction click event in a service worker
909-
using var window = JS.ServiceWorkerThis!.Clients.OpenWindow(newWindowUrl);
909+
using var window = await JS.ServiceWorkerThis!.Clients.OpenWindow(newWindowUrl);
910910
}
911911
var tcs = new TaskCompletionSource<AppInstance?>();
912912
var task = tcs.Task;

0 commit comments

Comments
 (0)