mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-08-04 07:08:17 +00:00
fix(web): move onDestroy
function out of the scaleSession
function (#831)
This commit is contained in:
parent
bfa71126bf
commit
ae3066337f
1 changed files with 4 additions and 4 deletions
|
@ -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}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue