mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-07-07 17:45:01 +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;
|
||||
}
|
||||
}
|
||||
|
||||
onDestroy(() => {
|
||||
window.removeEventListener('resize', resizeHandler);
|
||||
});
|
||||
}
|
||||
|
||||
function fullResize() {
|
||||
|
@ -691,6 +687,10 @@
|
|||
await initcanvas();
|
||||
initClipboard();
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
window.removeEventListener('resize', resizeHandler);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div bind:this={inner}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue