[flutter_tools] fix the event attribute used to skip waiting (#59568)
This commit is contained in:
committed by
GitHub
parent
deec88bb97
commit
95ee633f66
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user