Workbox v4.1.1
🐛 What's Fixed?
workbox-window
-
The
removeEventListener()
method of theWorkbox
class would throw due to an implementation error, this has been fixed. [#1963] -
If, at registration time, there was already both an active and waiting service worker with the same script URL as the one being registered, calling
getSW()
ormessageSW()
after registration would target the active service worker rather than the waiting service worker. The intended behavior is that the target service worker associated with aWorkbox
instance is always the most recently registered service worker with a matching script URL. These methods now target the waiting service worker [#1961]
Thanks!
Special thanks to @donavon for contributions that went into this release.