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

This commit is contained in:
Alex Yusiuk 2025-06-20 18:11:21 +03:00 committed by GitHub
parent bfa71126bf
commit ae3066337f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -515,10 +515,6 @@
break; break;
} }
} }
onDestroy(() => {
window.removeEventListener('resize', resizeHandler);
});
} }
function fullResize() { function fullResize() {
@ -691,6 +687,10 @@
await initcanvas(); await initcanvas();
initClipboard(); initClipboard();
}); });
onDestroy(() => {
window.removeEventListener('resize', resizeHandler);
});
</script> </script>
<div bind:this={inner}> <div bind:this={inner}>