From e6cc3cd84db91627d1c7b45321327e3c04f0eda8 Mon Sep 17 00:00:00 2001 From: Yegor Date: Tue, 1 Jun 2021 20:45:58 -0700 Subject: [PATCH] use old Edge-compatible JavaScript in index.html (#83732) --- packages/flutter_tools/templates/app/web/index.html.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/templates/app/web/index.html.tmpl b/packages/flutter_tools/templates/app/web/index.html.tmpl index d771b1ba56..800fb35795 100644 --- a/packages/flutter_tools/templates/app/web/index.html.tmpl +++ b/packages/flutter_tools/templates/app/web/index.html.tmpl @@ -67,7 +67,7 @@ if (!reg.active && (reg.installing || reg.waiting)) { // No active web worker and we have installed or are installing // one for the first time. Simply wait for it to activate. - waitForActivation(reg.installing ?? reg.waiting); + waitForActivation(reg.installing || reg.waiting); } else if (!reg.active.scriptURL.endsWith(serviceWorkerVersion)) { // When the app updates the serviceWorkerVersion changes, so we // need to ask the service worker to update.