Galina
Galina

Reputation: 41

How to open new browser window from Service Worker

Is there a way to open new browser window from Service Worker like window.open(...)?

Clients.openWindow() or WindowClient.navigate() not something I need, and open new tab only.

Upvotes: 4

Views: 3088

Answers (1)

Jeff Posnick
Jeff Posnick

Reputation: 56044

I'm not clear as to why you explicitly call out Clients.openWindow() as not being something you need, because what you describe is the intended use case for Clients.openWindow(). That's as close as you'll get to a solution.

Upvotes: 2

Related Questions