Unverified Commit 5f496547 authored by Sim Kern Cheh's avatar Sim Kern Cheh Committed by GitHub

Issue with comparison operator in generated service worker (#61066)

parent a82005a9
......@@ -526,11 +526,11 @@ self.addEventListener("fetch", (event) => {
self.addEventListener('message', (event) => {
// SkipWaiting can be used to immediately activate a waiting service worker.
// This will also require a page refresh triggered by the main worker.
if (event.data == 'skipWaiting') {
if (event.data === 'skipWaiting') {
return self.skipWaiting();
}
if (event.message = 'downloadOffline') {
if (event.message === 'downloadOffline') {
downloadOffline();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment