2020-02-13 12:27:42 +01:00
|
|
|
'use strict';
|
|
|
|
const CACHE_NAME = 'flutter-app-cache';
|
|
|
|
const RESOURCES = {
|
2020-02-27 19:11:10 +01:00
|
|
|
"/assets/LICENSE": "faaa5d8d775756d7b9c4212cef78d944",
|
|
|
|
"/assets/assets/images/logo.png": "090f69e23311a4b6d851b3880ae52541",
|
2020-02-13 12:27:42 +01:00
|
|
|
"/assets/FontManifest.json": "280b2f61f6810d59bd1bcd4cf01d3bf4",
|
2020-02-27 19:11:10 +01:00
|
|
|
"/assets/packages/font_awesome_flutter/lib/fonts/fa-brands-400.ttf": "51d23d1c30deda6f34673e0d5600fd38",
|
|
|
|
"/assets/packages/font_awesome_flutter/lib/fonts/fa-solid-900.ttf": "0ea892e09437fcaa050b2b15c53173b7",
|
|
|
|
"/assets/packages/font_awesome_flutter/lib/fonts/fa-regular-400.ttf": "d51b09f7b8345b41dd3b2201f653c62b",
|
2020-02-13 12:27:42 +01:00
|
|
|
"/assets/fonts/MaterialIcons-Regular.ttf": "56d3ffdef7a25659eab6a68a3fbfaf16",
|
2020-02-27 19:11:10 +01:00
|
|
|
"/assets/fonts/Roboto-Regular.ttf": "3e1af3ef546b9e6ecef9f3ba197bf7d2",
|
|
|
|
"/assets/web/assets/fonts/Roboto-Regular.ttf": "3e1af3ef546b9e6ecef9f3ba197bf7d2",
|
|
|
|
"/assets/AssetManifest.json": "90d7b27343fcf361dbf6385b3055ce4f",
|
|
|
|
"/index.html": "2b291048759a26809bc606c981d175ad",
|
2020-02-27 20:49:02 +01:00
|
|
|
"/main.dart.js": "84089bd9b264622fd945ed317530fcb9"
|
2020-02-13 12:27:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
self.addEventListener('activate', function (event) {
|
|
|
|
event.waitUntil(
|
|
|
|
caches.keys().then(function (cacheName) {
|
|
|
|
return caches.delete(cacheName);
|
|
|
|
}).then(function (_) {
|
|
|
|
return caches.open(CACHE_NAME);
|
|
|
|
}).then(function (cache) {
|
|
|
|
return cache.addAll(Object.keys(RESOURCES));
|
|
|
|
})
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
self.addEventListener('fetch', function (event) {
|
|
|
|
event.respondWith(
|
|
|
|
caches.match(event.request)
|
|
|
|
.then(function (response) {
|
|
|
|
if (response) {
|
|
|
|
return response;
|
|
|
|
}
|
2020-02-27 19:11:10 +01:00
|
|
|
return fetch(event.request);
|
2020-02-13 12:27:42 +01:00
|
|
|
})
|
|
|
|
);
|
|
|
|
});
|