Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into prod/festapp
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Jul 31, 2024
2 parents 8e6c0f0 + 0ce9b90 commit 4fcd174
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,27 +237,21 @@
return new Promise(resolve => setTimeout(resolve, time));
}

window.addEventListener('load', function(ev) {
{{flutter_js}}
{{flutter_build_config}}

var loaderContent = document.querySelector('#loader-content');

// Download main.dart.js
_flutter.loader.load({
serviceWorker: {
serviceWorkerVersion: {{flutter_service_worker_version}},
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(async function(appRunner) {
//await delay(5000);

loaderContent.style.opacity = "0";
//await delay(200);
appRunner.runApp();
});
}
});
{{flutter_js}}
{{flutter_build_config}}

// Download main.dart.js
_flutter.loader.load({
serviceWorker: {
serviceWorkerVersion: {{flutter_service_worker_version}},
},
onEntrypointLoaded: async function(engineInitializer) {
const appRunner = await engineInitializer.initializeEngine();
//await delay(5000);

//await delay(200);
appRunner.runApp();
}
});
</script>
<div class="main-content" id="loader-content">
Expand Down

0 comments on commit 4fcd174

Please sign in to comment.