From 37a83640e44395cfbbd699846e3c1aa619e460fa Mon Sep 17 00:00:00 2001 From: altaf-creator <64111012+altaf-creator@users.noreply.github.com> Date: Sun, 7 May 2023 20:47:29 +0700 Subject: Removed Service Worker --- src/scripts/main.js | 4 +++- src/scripts/service-worker.js | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/scripts/main.js b/src/scripts/main.js index 96210b1..d0f11f5 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -1,3 +1,4 @@ +/* Not working, making load time longer, revisit later. function urlExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); @@ -21,4 +22,5 @@ if ("serviceWorker" in navigator) { .catch(err => console.log("service worker not registered", err)) } }) -} \ No newline at end of file +} +*/ \ No newline at end of file diff --git a/src/scripts/service-worker.js b/src/scripts/service-worker.js index 4263b47..f7cfcda 100644 --- a/src/scripts/service-worker.js +++ b/src/scripts/service-worker.js @@ -1,3 +1,4 @@ +/* Not working, making load time longer, revisit later. const staticQuran = "quran-all"; const assets = [ "../../", @@ -41,7 +42,7 @@ self.addEventListener("fetch", fetchEvent => { ) }) */ - +/* try { process.versions['electron'] } catch { @@ -82,4 +83,5 @@ try { }) ); }); -} \ No newline at end of file +} +*/ \ No newline at end of file -- cgit v1.2.3