fix(web): move onDestroy function out of the scaleSession function (#831)

This commit is contained in:
Alex Yusiuk
2025-06-20 11:11:21 -04:00
committed by GitHub
parent bfa71126bf
commit ae3066337f
@@ -515,10 +515,6 @@
break;
}
}
onDestroy(() => {
window.removeEventListener('resize', resizeHandler);
});
}
function fullResize() {
@@ -691,6 +687,10 @@
await initcanvas();
initClipboard();
});
onDestroy(() => {
window.removeEventListener('resize', resizeHandler);
});
</script>
<div bind:this={inner}>