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(() => {
|
onMount(() => {
|
||||||
window.addEventListener('message', handleMessage);
|
window.addEventListener('message', handleMessage);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -835,9 +835,9 @@
|
|||||||
loaded = true;
|
loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify opener window that the app has loaded
|
// Auto-show SyncStatsModal when opened with ?sync=true (from community)
|
||||||
if (window.opener ?? false) {
|
if ((window.opener ?? false) && $page.url.searchParams.get('sync') === 'true') {
|
||||||
window.opener.postMessage('loaded', '*');
|
showSyncStatsModal = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user