Wrapping up for the day. The new IDAA versions are almost ready to go live.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user