mirror of
https://github.com/open-webui/open-webui.git
synced 2026-02-24 12:11:56 +01:00
refac
This commit is contained in:
@@ -51,6 +51,11 @@
|
||||
}
|
||||
};
|
||||
|
||||
// Watch for modal visibility changes to notify opener
|
||||
$: if (show && window.opener) {
|
||||
window.opener.postMessage('loaded', '*');
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
window.addEventListener('message', handleMessage);
|
||||
});
|
||||
|
||||
@@ -835,9 +835,9 @@
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
// Notify opener window that the app has loaded
|
||||
if (window.opener ?? false) {
|
||||
window.opener.postMessage('loaded', '*');
|
||||
// Auto-show SyncStatsModal when opened with ?sync=true (from community)
|
||||
if ((window.opener ?? false) && $page.url.searchParams.get('sync') === 'true') {
|
||||
showSyncStatsModal = true;
|
||||
}
|
||||
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user