From cba09ed5f1af8a5eae19aaa30696473cf955bb8c Mon Sep 17 00:00:00 2001 From: TimZ99 Date: Fri, 12 Apr 2019 13:13:27 +0200 Subject: [PATCH] Fixed path to files --- manifest.json | 2 +- service-worker.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/manifest.json b/manifest.json index f2b8582d..28ca7456 100755 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ "sizes": "32x32", "type": "image/x-icon" }], - "start_url": "/index.php", + "start_url": "index.php", "display": "standalone", "background_color": "#3E4EB8", "theme_color": "#ffffff" diff --git a/service-worker.js b/service-worker.js index 1d2bbcf4..f887bf12 100755 --- a/service-worker.js +++ b/service-worker.js @@ -2,14 +2,14 @@ var dataCacheName = 'PSM-v1'; var cacheName = 'PSM-PWA-final-1'; var filesToCache = [ '/', - '/index.php', - '/static/js/history.js', - '/static/js/script.js', - '/static/js/search.js', - '/static/css/bootstrap.min.css', - '/static/css/search.min.css', - '/static/css/style.min.css', - '/static/phpservermon.png' + 'index.php', + 'static/js/history.js', + 'static/js/scripts.js', + 'static/js/search.js', + 'static/css/bootstrap.min.css', + 'static/css/search.min.css', + 'static/css/style.min.css', + 'static/phpservermon.png' ]; self.addEventListener('install', function(e) {