-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d3d323
commit f097efd
Showing
11 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
{ | ||
"files": { | ||
"main.css": "/save-links/static/css/main.6342d811.css", | ||
"main.js": "/save-links/static/js/main.69212c76.js", | ||
"static/js/453.fdf12fae.chunk.js": "/save-links/static/js/453.fdf12fae.chunk.js", | ||
"main.js": "/save-links/static/js/main.26f1bf97.js", | ||
"index.html": "/save-links/index.html", | ||
"main.6342d811.css.map": "/save-links/static/css/main.6342d811.css.map", | ||
"main.69212c76.js.map": "/save-links/static/js/main.69212c76.js.map", | ||
"453.fdf12fae.chunk.js.map": "/save-links/static/js/453.fdf12fae.chunk.js.map" | ||
"main.26f1bf97.js.map": "/save-links/static/js/main.26f1bf97.js.map" | ||
}, | ||
"entrypoints": [ | ||
"static/css/main.6342d811.css", | ||
"static/js/main.69212c76.js" | ||
"static/js/main.26f1bf97.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/save-links/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="save links" content="This web page offers an interactive interface for saving and managing favorite links in customizable cards. Each card displays user-defined text, URL, and color, with an in-built icon loader that fetches the website's favicon for a professional look. This allows users to visually organize and quickly access their links."/><link rel="apple-touch-icon" href="/save-links/favicon.svg"/><link rel="manifest" href="/save-links/manifest.json"/><title>Save Links</title><script defer="defer" src="/save-links/static/js/main.69212c76.js"></script><link href="/save-links/static/css/main.6342d811.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/save-links/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="save links" content="This web page offers an interactive interface for saving and managing favorite links in customizable cards. Each card displays user-defined text, URL, and color, with an in-built icon loader that fetches the website's favicon for a professional look. This allows users to visually organize and quickly access their links."/><link rel="apple-touch-icon" href="/save-links/favicon.svg"/><link rel="manifest" href="/save-links/manifest.json"/><title>Save Links</title><script defer="defer" src="/save-links/static/js/main.26f1bf97.js"></script><link href="/save-links/static/css/main.6342d811.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const CACHE_NAME = 'save-links-v1'; | ||
const urlsToCache = [ | ||
'/', | ||
'/index.html', | ||
'/manifest.json', | ||
'/favicon.jpeg', | ||
'/favicon.svg', | ||
'/default.svg', | ||
]; | ||
|
||
// Install event | ||
self.addEventListener('install', (event) => { | ||
event.waitUntil( | ||
caches.open(CACHE_NAME).then((cache) => { | ||
console.log('Opened cache'); | ||
return cache.addAll(urlsToCache); | ||
}) | ||
); | ||
}); | ||
|
||
// Fetch event | ||
self.addEventListener('fetch', (event) => { | ||
event.respondWith( | ||
caches.match(event.request).then((response) => { | ||
return response || fetch(event.request); | ||
}) | ||
); | ||
}); | ||
|
||
// Activate event | ||
self.addEventListener('activate', (event) => { | ||
const cacheWhitelist = [CACHE_NAME]; | ||
event.waitUntil( | ||
caches.keys().then((cacheNames) => | ||
Promise.all( | ||
cacheNames.map((cacheName) => { | ||
if (!cacheWhitelist.includes(cacheName)) { | ||
return caches.delete(cacheName); | ||
} | ||
}) | ||
) | ||
) | ||
); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.