aboutsummaryrefslogtreecommitdiff
path: root/web/script/player/popup.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-27 16:27:29 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-27 16:27:29 +0100
commitefcbc7b810acfe6f84b9b114d8a5735781753ac0 (patch)
treed4663bc808b193187086dc63fe4bd3d56e753ef2 /web/script/player/popup.ts
parent2affa0fc842013b7ed1fd86cb8bd68f71fa6555c (diff)
downloadjellything-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.ts3
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