Re: [ServiceWorker] Why does update() not return the promise from _Update (#311)

Agree with @annevk here.

`reg.update()` should return a promise that resolves if the update completes successfully (even if no new SW is created as a result), it rejects if there's a network error.

The resolved value should be undefined, as you already have the registration.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/311#issuecomment-123012186

Received on Monday, 20 July 2015 20:03:33 UTC