kevmoo 2 years ago
parent 0eb9fa231a
commit 986090a91e

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -18,8 +18,8 @@ const RESOURCES = {
"main.dart.js": "eafb7874040e0b432232ff5a3abdb28a",
"manifest.json": "68625bab86590a7ebe9e384ad0eedabd",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "18fcc29efd8474ba66128c027982d9db",
"/": "18fcc29efd8474ba66128c027982d9db",
"index.html": "e4ad32831c7617bb73c3c09e98e3100a",
"/": "e4ad32831c7617bb73c3c09e98e3100a",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '337741793';
var serviceWorkerVersion = '2329208176';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -16,8 +16,8 @@ const RESOURCES = {
"main.dart.js": "8189962dbe17c30d76455d9af47b3a5e",
"manifest.json": "abaeea879f3279d2833ea9b6d03fcc4f",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "40d8f5e5cc7fa9388cc91a8a7653e8d3",
"/": "40d8f5e5cc7fa9388cc91a8a7653e8d3",
"index.html": "d7ba3fbde64a9ca4c4a962fd07aa036b",
"/": "d7ba3fbde64a9ca4c4a962fd07aa036b",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '5166163';
var serviceWorkerVersion = '1328959783';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -61,8 +61,8 @@ const RESOURCES = {
"main.dart.js": "45c7363ab3164af6337bbefbbdc0811c",
"manifest.json": "d3e8be9819697c196251e6e977053336",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "87832be7ac0285eaff581ee615beb33b",
"/": "87832be7ac0285eaff581ee615beb33b",
"index.html": "b550f21ae5b4758a9d325d01fa2355de",
"/": "b550f21ae5b4758a9d325d01fa2355de",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -37,7 +37,7 @@
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = '621990504';
var serviceWorkerVersion = '3565234711';
var scriptLoaded = false;
function loadMainDartJs() {
if (scriptLoaded) {

@ -16,8 +16,8 @@ const RESOURCES = {
"main.dart.js": "4ea4e7c26519df57988c16c6709599ce",
"manifest.json": "05f725318f41bf1601ead9ffa9355535",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "ac542990159aa57cc033aeb9032b4ce9",
"/": "ac542990159aa57cc033aeb9032b4ce9",
"index.html": "8d0aa542ac3ae445c2a4c81054f8f658",
"/": "8d0aa542ac3ae445c2a4c81054f8f658",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -31,74 +31,29 @@
<title>material_3_demo</title>
<link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '3920906240';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = '2005348305';
var scriptLoaded = false;
function loadMainDartJs() {
if (scriptLoaded) {
return;
}
scriptLoaded = true;
var scriptTag = document.createElement('script');
scriptTag.src = 'main.dart.js';
scriptTag.type = 'application/javascript';
document.body.append(scriptTag);
}
if ('serviceWorker' in navigator) {
// Service workers are supported. Use them.
window.addEventListener('load', function () {
// Wait for registration to finish before dropping the <script> tag.
// Otherwise, the browser will load the script multiple times,
// potentially different versions.
var serviceWorkerUrl = 'flutter_service_worker.js?v=' + serviceWorkerVersion;
navigator.serviceWorker.register(serviceWorkerUrl)
.then((reg) => {
function waitForActivation(serviceWorker) {
serviceWorker.addEventListener('statechange', () => {
if (serviceWorker.state == 'activated') {
console.log('Installed new service worker.');
loadMainDartJs();
}
});
}
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);
} else if (!reg.active.scriptURL.endsWith(serviceWorkerVersion)) {
// When the app updates the serviceWorkerVersion changes, so we
// need to ask the service worker to update.
console.log('New service worker available.');
reg.update();
waitForActivation(reg.installing);
} else {
// Existing service worker is still good.
console.log('Loading app from service worker.');
loadMainDartJs();
}
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
// If service worker doesn't succeed in a reasonable amount of time,
// fallback to plain <script> tag.
setTimeout(() => {
if (!scriptLoaded) {
console.warn(
'Failed to load app from service worker. Falling back to plain <script> tag.',
);
loadMainDartJs();
}
}, 4000);
}
});
} else {
// Service workers not supported. Just drop the <script> tag.
loadMainDartJs();
}
});
</script>
</body>
</html>

@ -16,8 +16,8 @@ const RESOURCES = {
"main.dart.js": "954d4c7796ba10e575019076f9aadcf0",
"manifest.json": "b3e6ffc626a7ddc3a2a95f62ee423a43",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "d477b0cd4b1e8b09c62f3b6011711bc6",
"/": "d477b0cd4b1e8b09c62f3b6011711bc6",
"index.html": "a83add536a2913e5f98e8af541f2c2b5",
"/": "a83add536a2913e5f98e8af541f2c2b5",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '1311221386';
var serviceWorkerVersion = '1150708028';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -20,8 +20,8 @@ const RESOURCES = {
"main.dart.js": "ac3db21162c1f3b7d1ed13052f849c3f",
"manifest.json": "470be0990b1a9c5a9011c08ba3d78e79",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "4a10e36aa02bb82d98021b7afd69dd9a",
"/": "4a10e36aa02bb82d98021b7afd69dd9a",
"index.html": "1dbd1a45502c5ea820e828abc32c10e3",
"/": "1dbd1a45502c5ea820e828abc32c10e3",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '3619486929';
var serviceWorkerVersion = '2347479092';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -16,8 +16,8 @@ const RESOURCES = {
"main.dart.js": "4425331e3036a1a1b6cc9807d7e9bec7",
"manifest.json": "8cd9b0527efb8828cd336f4a2bdd731e",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "46524a06cde16c1758c730682ad03668",
"/": "46524a06cde16c1758c730682ad03668",
"index.html": "bf7878bf7b754f275a8394db067738d6",
"/": "bf7878bf7b754f275a8394db067738d6",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '210118539';
var serviceWorkerVersion = '3848897187';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -16,8 +16,8 @@ const RESOURCES = {
"main.dart.js": "53e89b0fe97ceba614dc46703e7dfa83",
"manifest.json": "fcc4cffd0f45ba41f31bdd5e05ca1ded",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"index.html": "705314be0048ee140a60b52f0832c798",
"/": "705314be0048ee140a60b52f0832c798",
"index.html": "2687016830010a05973a78f680c632dd",
"/": "2687016830010a05973a78f680c632dd",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '3661097242';
var serviceWorkerVersion = '1261399840';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

Loading…
Cancel
Save