Open annevk opened 8 years ago
Even if its async, it would be nice to conclusively get the registration managing the ServiceWorker object. Currently things like getRegistration() could conceivably give you a different registration.
Not against adding this unless the synchronous nature (or circular reference) is problematic.
Would be kind of convenient to have a pointer to a
ServiceWorker
's correspondingServiceWorkerRegistration
instance. Or is it too problematic that you can then get to it synchronously from the controller?