1 parent
1c96d5973b
commit
e80dbc2fda
38 files changed
+1352
-6335
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Echoion Music Bot",
|
||||
"short_name": "Echoion",
|
||||
"description": "Control the Echoion TeamSpeak music bot — play, queue, search and watch together.",
|
||||
"description": "Control the Echoion TeamSpeak music bot and view live server activity.",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Minimal, dependency-free service worker: makes the panel installable and
|
||||
// keeps the app shell available offline. It deliberately does NOT touch the
|
||||
// live surfaces — /rpc and /ws (WebSockets aren't interceptable anyway),
|
||||
// /config.json, /avatar/*, /emoji/* all fall through to the network so the UI
|
||||
// never shows stale identity/config.
|
||||
// live surfaces — /rpc (WebSockets aren't interceptable anyway),
|
||||
// /config.json, /api/* and /avatar/* all fall through to the network so the
|
||||
// UI never shows stale identity/config.
|
||||
|
||||
// Bump when the player shell changes materially so installed/PWA clients do
|
||||
// not retain an index that references a removed hashed bundle.
|
||||
const CACHE = 'echoion-shell-v2';
|
||||
const CACHE = 'echoion-shell-v4';
|
||||
const SHELL = ['/', '/manifest.webmanifest', '/icon.svg', '/icon-maskable.svg'];
|
||||
|
||||
self.addEventListener('install', (event) => {
|
||||
@@ -48,10 +48,9 @@ self.addEventListener('fetch', (event) => {
|
||||
// Never intercept the live control/config/media surfaces.
|
||||
if (
|
||||
url.pathname === '/config.json' ||
|
||||
url.pathname.startsWith('/api/') ||
|
||||
url.pathname.startsWith('/rpc') ||
|
||||
url.pathname.startsWith('/ws') ||
|
||||
url.pathname.startsWith('/avatar') ||
|
||||
url.pathname.startsWith('/emoji')
|
||||
url.pathname.startsWith('/avatar')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user