Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gniarchos committed Aug 23, 2024
1 parent 13fbeb2 commit 040a1b2
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 42 deletions.
6 changes: 3 additions & 3 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/iSeeU-InstagramTracker/static/css/main.c378543d.css",
"main.js": "/iSeeU-InstagramTracker/static/js/main.21cddfff.js",
"main.js": "/iSeeU-InstagramTracker/static/js/main.f95ac1bc.js",
"index.html": "/iSeeU-InstagramTracker/index.html",
"main.c378543d.css.map": "/iSeeU-InstagramTracker/static/css/main.c378543d.css.map",
"main.21cddfff.js.map": "/iSeeU-InstagramTracker/static/js/main.21cddfff.js.map"
"main.f95ac1bc.js.map": "/iSeeU-InstagramTracker/static/js/main.f95ac1bc.js.map"
},
"entrypoints": [
"static/css/main.c378543d.css",
"static/js/main.21cddfff.js"
"static/js/main.f95ac1bc.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta name="mobile-web-app-capable" content="yes"/><meta name="viewport" content="viewport-fit=cover,width=device-width,initial-scale=1"/><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/><meta http-equiv="Pragma" content="no-cache"/><meta http-equiv="Expires" content="0"/><meta charset="utf-8"/><link rel="stylesheet" href="styles.css"/><link rel="apple-touch-icon" sizes="180x180" href="/iSeeU-InstagramTracker/public-images/apple-touch-icon.png?"/><link rel="icon" type="image/png" sizes="32x32" href="/iSeeU-InstagramTracker/public-images/favicon-32x32.png?"/><link rel="icon" type="image/png" sizes="16x16" href="/iSeeU-InstagramTracker/public-images/favicon-16x16.png?"/><link rel="manifest" href="/iSeeU-InstagramTracker/public-images/site.webmanifest?"/><link rel="mask-icon" href="/iSeeU-InstagramTracker/public-images/safari-pinned-tab.svg?" color="#5bbad5"/><meta name="apple-mobile-web-app-title" content="iSeeU"/><meta name="application-name" content="iSeeU"/><meta name="msapplication-TileColor" content="#da532c"/><meta name="theme-color" content="#ffffff"/><link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"/><script src="https://unpkg.com/ios-pwa-splash@1.0.0/cdn.min.js"></script><script>iosPWASplash("/iSeeU-InstagramTracker/public-images/original.png?","#ffffff")</script><title>iSeeU - Unfollowers Finder</title><script defer="defer" src="/iSeeU-InstagramTracker/static/js/main.21cddfff.js"></script><link href="/iSeeU-InstagramTracker/static/css/main.c378543d.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta name="mobile-web-app-capable" content="yes"/><meta name="viewport" content="viewport-fit=cover,width=device-width,initial-scale=1"/><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/><meta http-equiv="Pragma" content="no-cache"/><meta http-equiv="Expires" content="0"/><meta charset="utf-8"/><link rel="stylesheet" href="styles.css"/><link rel="apple-touch-icon" sizes="180x180" href="/iSeeU-InstagramTracker/public-images/apple-touch-icon.png?"/><link rel="icon" type="image/png" sizes="32x32" href="/iSeeU-InstagramTracker/public-images/favicon-32x32.png?"/><link rel="icon" type="image/png" sizes="16x16" href="/iSeeU-InstagramTracker/public-images/favicon-16x16.png?"/><link rel="manifest" href="/iSeeU-InstagramTracker/public-images/site.webmanifest?"/><link rel="mask-icon" href="/iSeeU-InstagramTracker/public-images/safari-pinned-tab.svg?" color="#5bbad5"/><meta name="apple-mobile-web-app-title" content="iSeeU"/><meta name="application-name" content="iSeeU"/><meta name="msapplication-TileColor" content="#da532c"/><meta name="theme-color" content="#ffffff"/><link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"/><script src="https://unpkg.com/ios-pwa-splash@1.0.0/cdn.min.js"></script><script>iosPWASplash("/iSeeU-InstagramTracker/public-images/original.png?","#ffffff")</script><title>iSeeU - Unfollowers Finder</title><script defer="defer" src="/iSeeU-InstagramTracker/static/js/main.f95ac1bc.js"></script><link href="/iSeeU-InstagramTracker/static/css/main.c378543d.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
53 changes: 19 additions & 34 deletions service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ const urlsToCache = [

// Install the service worker
self.addEventListener("install", (event) => {
event.waitUntil(
caches.open(CACHE_NAME).then((cache) => {
return cache.addAll(urlsToCache)
})
)
self.skipWaiting() // Forces the new worker to activate immediately
})

// Intercept fetch requests
Expand All @@ -28,35 +24,24 @@ self.addEventListener("fetch", (event) => {

// Activate the service worker
self.addEventListener("activate", (event) => {
const cacheWhitelist = [CACHE_NAME]
event.waitUntil(
caches.keys().then((cacheNames) => {
return Promise.all(
cacheNames.map((cacheName) => {
if (!cacheWhitelist.includes(cacheName)) {
alert(`Deleting cache: ${cacheName}`)
return caches.delete(cacheName)
}
})
)
})
caches
.keys()
.then((cacheNames) => {
return Promise.all(
cacheNames.map((cacheName) => {
if (!cacheWhitelist.includes(cacheName)) {
console.log(`Deleting old cache: ${cacheName}`)
return caches.delete(cacheName)
}
})
)
})
.then(() => {
return clients.claim()
})
.catch((err) => {
console.error("Failed to clean up old caches:", err)
})
)
})

// Handle meta tag updates
// let cachedMetaTagContent = ""

// self.addEventListener("message", (event) => {
// if (event.data && event.data.type === "META_TAG_CONTENT") {
// const newMetaTagContent = event.data.content

// // Check if the meta tag content has changed
// if (newMetaTagContent !== cachedMetaTagContent) {
// cachedMetaTagContent = newMetaTagContent

// // Optionally update cache or trigger cache refresh
// self.skipWaiting() // Forces the waiting service worker to become the active service worker
// // Example: caches.keys().then(keys => keys.forEach(key => caches.delete(key)));
// }
// }
// })
6 changes: 3 additions & 3 deletions static/js/main.21cddfff.js → static/js/main.f95ac1bc.js

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

0 comments on commit 040a1b2

Please sign in to comment.