refac/enh: unregisterServiceWorkers on update
This commit is contained in:
@@ -1425,7 +1425,7 @@ export const getVersion = async (token: string) => {
|
||||
throw error;
|
||||
}
|
||||
|
||||
return res?.version ?? null;
|
||||
return res;
|
||||
};
|
||||
|
||||
export const getVersionUpdates = async (token: string) => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user