I've have witness a very strange behavior on Chrome today... It seems that navigator.serviceWorker.ready
never resolves after a redirection from another website.
After being redirected, run this on the console:
navigator.serviceWorker.ready
// Promise {<pending>}
Doesn't matter how much time you wait... it never resolves.
Now, reload the page and run it again, you will immediately get:
// Promise {<fulfilled>: ServiceWorkerRegistration}
Does anybody know a workaround on this?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/O3h1CvT
Comments
Post a Comment