Wrapping up for the day. The new IDAA versions are almost ready to go live.

This commit is contained in:
Scott Idem
2025-06-27 18:44:08 -04:00
parent a6edc461f3
commit 088b32e4f1

View File

@@ -6,6 +6,7 @@ let { data }: { data: PageData } = $props();
let log_lvl: number = 0;
// *** Import Svelte specific
import { onDestroy } from "svelte";
import { browser } from '$app/environment';
// *** Import other supporting libraries
@@ -56,6 +57,19 @@ if (browser) {
window.parent.postMessage({'scroll_to': 0}, "*"); // This should be in pixels
}
}
onDestroy(() => {
log_lvl = 1;
if (log_lvl) {
console.log(`Destroying recovery meetings page for event_id: ${$idaa_slct?.event_id}`);
}
let message = {'event_id': null};
window.parent.postMessage(message, "*");
$idaa_slct.event_id = null;
$idaa_slct.event_obj = null;
});
</script>