- From: Michael van Ouwerkerk <notifications@github.com>
- Date: Thu, 15 Jan 2015 10:59:06 -0800
- To: w3c/push-api <push-api@noreply.github.com>
Received on Thursday, 15 January 2015 18:59:33 UTC
Peter noted that we can just wait for the SW to be activated, the promise callbacks can wait a little. That seems like a nice way of avoiding rejection in this possibly common case (thanks John): ```js navigator.serviceWorker.register(...).then(function(serviceWorkerRegistration) { serviceWorkerRegistration.pushManager.subscribe(...); }); ``` --- Reply to this email directly or view it on GitHub: https://github.com/w3c/push-api/issues/92#issuecomment-70140668
Received on Thursday, 15 January 2015 18:59:33 UTC