diff options
Diffstat (limited to 'src/scripts/service-worker.js')
-rw-r--r-- | src/scripts/service-worker.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/scripts/service-worker.js b/src/scripts/service-worker.js index 38cffd5..e6d2a5a 100644 --- a/src/scripts/service-worker.js +++ b/src/scripts/service-worker.js @@ -23,23 +23,10 @@ const assets = [ "../src/scripts/sura-list.js", ]; -function urlExists(url) { - var http = new XMLHttpRequest(); - http.open('HEAD', url, false); - if (http.status != 200) - console.log(url) - http.send(); - return http.status != 404; -} - self.addEventListener("install", installEvent => { installEvent.waitUntil( caches.open(staticQuran).then(cache => { cache.addAll(assets) - for (var i = 0; i < assets.length; i++) { - urlExists(assets[i]); - } - console.log(assets) }) ) }) |