Unverified Commit 95ee633f authored by Diego Henrique Domingues's avatar Diego Henrique Domingues Committed by GitHub

[flutter_tools] fix the event attribute used to skip waiting (#59568)

parent deec88bb
......@@ -523,7 +523,7 @@ 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.message == 'skipWaiting') {
if (event.data == 'skipWaiting') {
return self.skipWaiting();
}
......
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