1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-10-23 01:47:40 +00:00

Fix: simplified packaging

This commit is contained in:
jcorporation
2018-09-20 23:04:35 +01:00
parent 9272b69c9f
commit 4961daa6a3
9 changed files with 33 additions and 69 deletions

View File

@@ -550,7 +550,7 @@ function appInit() {
if ('serviceWorker' in navigator && document.URL.substring(0, 5) == 'https') {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js', {scope: '/'}).then(function(registration) {
navigator.serviceWorker.register('/sw.min.js', {scope: '/'}).then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
registration.update();