mirror of
https://github.com/SuperBFG7/ympd
synced 2025-10-23 01:47:40 +00:00
Fix: simplified packaging
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user