- From: Arthur Stolyar <notifications@github.com>
- Date: Thu, 25 Aug 2016 04:11:09 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Thursday, 25 August 2016 11:11:43 UTC
@wanderview > I can't think of any valid use case for initiating a postMessage from the window to a service worker. Anything you can do in the service worker (Cache API, etc) you can do from the window. Well, I have one. When I need to apply update, I send a message to SW to do `skipWaiting()`. See this: https://github.com/NekR/offline-plugin/blob/master/tpls/runtime-template.js#L184 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/756#issuecomment-242351691
Received on Thursday, 25 August 2016 11:11:43 UTC