refac/enh: unregisterServiceWorkers on update

This commit is contained in:
Timothy Jaeryang Baek
2025-11-20 15:34:15 -05:00
parent 4c28f19bdd
commit ff7a54653a
5 changed files with 46 additions and 7 deletions

View File

@@ -1425,7 +1425,7 @@ export const getVersion = async (token: string) => {
throw error;
}
return res?.version ?? null;
return res;
};
export const getVersionUpdates = async (token: string) => {

View File

@@ -8,7 +8,10 @@ import emojiShortCodes from '$lib/emoji-shortcodes.json';
// Backend
export const WEBUI_NAME = writable(APP_NAME);
export const WEBUI_VERSION = writable(null);
export const WEBUI_DEPLOYMENT_ID = writable(null);
export const config: Writable<Config | undefined> = writable(undefined);
export const user: Writable<SessionUser | undefined> = writable(undefined);