RE: Service worker popup (rich notification)

From: annevankesteren@gmail.com [mailto:annevankesteren@gmail.com] On Behalf Of Anne van Kesteren

> Constructing an object as a means of opening a new window seems really weird. Is that the pattern common JavaScript widget libraries adopt?

Says the creator of `new Notification({...})` ;)

But, I think the answer to your question is indeed yes. It's good to have an object representing the new window, that you can manipulate (e.g. call a `.close()` method on, or send messages to).

That said, I can't think of any examples off the top of my head, so I might be wrong :(

Received on Monday, 6 October 2014 13:46:49 UTC