mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
fix(web): move onDestroy function out of the scaleSession function (#831)
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user