[flutter_tools] change service worker load to NOTICES (#58890)

update flutter_service_worker.js to NOTICES
This commit is contained in:
Jonah Williams
2020-06-08 12:33:31 -07:00
committed by GitHub
parent 0620cfa770
commit 80ea454288
2 changed files with 8 additions and 4 deletions

View File

@@ -378,7 +378,7 @@ class WebServiceWorker extends Target {
'/',
'main.dart.js',
'index.html',
'assets/LICENSE',
'assets/NOTICES',
if (urlToHash.containsKey('assets/AssetManifest.json'))
'assets/AssetManifest.json',
if (urlToHash.containsKey('assets/FontManifest.json'))
@@ -543,10 +543,10 @@ async function downloadOffline() {
}
for (var resourceKey in Object.keys(RESOURCES)) {
if (!currentContent[resourceKey]) {
resources.add(resourceKey);
resources.push(resourceKey);
}
}
return Cache.addAll(resources);
return contentCache.addAll(resources);
}
''';
}