mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
bump version
This commit is contained in:
1 parent
a8f9c49c4c
commit
518915ceab
10 files changed
+42
-21
No files matched your search
@@ -53,7 +53,7 @@ async function initConfig() {
|
||||
const res = await fetch('/sw-config');
|
||||
config = await res.json();
|
||||
config.hosts ||= [];
|
||||
config.domains ||= [location.host];
|
||||
if (!config.domains?.length) config.domains = [location.host];
|
||||
}
|
||||
|
||||
self.addEventListener('install', (event) => event.waitUntil((async () => {
|
||||
@@ -77,7 +77,6 @@ self.addEventListener('activate', (event) => {
|
||||
caches.keys(),
|
||||
initConfig(),
|
||||
]);
|
||||
config.domains ||= ['beta.hydro.ac', 'next.hydro.ac'];
|
||||
console.log('Config: ', config);
|
||||
await Promise.all(names.filter((name) => !valid.includes(name)).map((p) => caches.delete(p)));
|
||||
self.clients.claim();
|
||||
|
||||
Reference in new issue
Block a user