Commit d228b1b9 authored by Anna Kutschka's avatar Anna Kutschka

working service-worker

parent 0e9ff68d
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
\ No newline at end of file
......@@ -19,6 +19,7 @@
Paul | aerotwist
-->
<body>
<!-- Hiding library elements in the DOM is fun -->
......@@ -30,12 +31,13 @@
<main id="welcome-back" class="isPaused">
<h1>Welcome back!</h1>
</main>
<button id="getAppButton">GET THE APP</button>
</body>
<button id="getAppButton">GET THE APP</button>
<script src="js/requestanimframe.js"></script>
<script src="js/fireworks.js"></script>
<script src="js/defferPrompt.js"></script>
<script src="js/deferredPrompt.js"></script>
<script>
if ('serviceWorker' in navigator) {
......
......@@ -11,7 +11,6 @@ window.addEventListener('beforeinstallprompt', function(e) {
return false;
});
btnSave.addEventListener('click', function() {
if(deferredPrompt !== undefined) {
// The user has had a positive interaction with our app and Chrome
......
this.addEventListener('fetch', function (event) {
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment