mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-29 00:24:39 +01:00
refac
This commit is contained in:
@@ -26,12 +26,12 @@
|
||||
const syncStats = async () => {
|
||||
if (window.opener) {
|
||||
window.opener.focus();
|
||||
window.opener.postMessage({ type: 'sync:start' }, '*');
|
||||
}
|
||||
|
||||
const res = await getVersion(localStorage.token).catch(() => {
|
||||
return null;
|
||||
});
|
||||
|
||||
if (res) {
|
||||
window.opener.postMessage({ type: 'sync:version', data: res }, '*');
|
||||
}
|
||||
@@ -69,6 +69,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
// send sync complete message
|
||||
if (window.opener) {
|
||||
window.opener.postMessage({ type: 'sync:complete' }, '*');
|
||||
}
|
||||
loading = false;
|
||||
completed = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user