Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/sw.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/web/assets/js/sw.js b/web/assets/js/sw.js
deleted file mode 100644
index 46cf61c4..00000000
--- a/web/assets/js/sw.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var self = this;
-
-var filesToCache = [
- '/'
-];
-
-self.addEventListener('install', function (e) {
- e.waitUntil(
- caches.open('3xPanel').then(function (cache) {
- return cache.addAll(filesToCache);
- })
- );
-});
-self.addEventListener('activate', function (event) {
- event.waitUntil(
- caches.keys().then(function (cacheNames) {
- return Promise.all(
- cacheNames.filter(function (cacheName) {
- }).map(function (cacheName) {
- return caches.delete(cacheName);
- })
- );
- })
- );
-});
-self.addEventListener('fetch', function (event) {
- event.respondWith(
- caches.open('mysite-dynamic').then(function (cache) {
- return cache.match(event.request).then(function (response) {
- return response || fetch(event.request).then(function (response) {
- cache.put(event.request, response.clone());
- return response;
- });
- });
- })
- );
-});
-
-console.clear(); \ No newline at end of file