From bb7a001eb8080ad99606a83ffd14ea86fe71a61c Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 14 Sep 2023 17:24:40 -0400 Subject: [PATCH] fix(ags): only remove source of interval once --- config/ags/js/notifications/popup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/ags/js/notifications/popup.js b/config/ags/js/notifications/popup.js index d30c036..28547fe 100644 --- a/config/ags/js/notifications/popup.js +++ b/config/ags/js/notifications/popup.js @@ -21,6 +21,7 @@ const Popups = () => Box({ timeout(200, () => { if (box._map.get(id).interval) { source_remove(box._map.get(id).interval); + box._map.get(id).interval = undefined; } box._map.get(id)?.destroy(); box._map.delete(id); @@ -47,6 +48,7 @@ const Popups = () => Box({ if (box._map.get(id).interval) { source_remove(box._map.get(id).interval); + box._map.get(id).interval = undefined; } } });