diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-27 16:27:29 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-27 16:27:29 +0100 |
commit | efcbc7b810acfe6f84b9b114d8a5735781753ac0 (patch) | |
tree | d4663bc808b193187086dc63fe4bd3d56e753ef2 /web/script/player/popup.ts | |
parent | 2affa0fc842013b7ed1fd86cb8bd68f71fa6555c (diff) | |
download | jellything-efcbc7b810acfe6f84b9b114d8a5735781753ac0.tar jellything-efcbc7b810acfe6f84b9b114d8a5735781753ac0.tar.bz2 jellything-efcbc7b810acfe6f84b9b114d8a5735781753ac0.tar.zst |
fix some double-free bugs in the DOM
Diffstat (limited to 'web/script/player/popup.ts')
-rw-r--r-- | web/script/player/popup.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/script/player/popup.ts b/web/script/player/popup.ts index d300a5c..dde7ed6 100644 --- a/web/script/player/popup.ts +++ b/web/script/player/popup.ts @@ -44,6 +44,9 @@ export class Popup { const content = this.content! content.classList.add("jsp-popup-out") setTimeout(() => { + //@ts-ignore i know + const child_undo: undefined | (() => void) = content["jsh_undo"] + if (child_undo) child_undo() this.container.removeChild(content) }, 100) this.content = undefined |