From bde4cb06f4c6813f0668ee84ad33cf134bdc86e8 Mon Sep 17 00:00:00 2001 From: chylex Date: Sat, 12 Feb 2022 20:40:44 +0100 Subject: [PATCH] Dispose of all window properties when the DHT panel is closed (app) --- app/Resources/Tracker/scripts/gui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Resources/Tracker/scripts/gui.js b/app/Resources/Tracker/scripts/gui.js index 6f879da..702ebba 100644 --- a/app/Resources/Tracker/scripts/gui.js +++ b/app/Resources/Tracker/scripts/gui.js @@ -55,7 +55,8 @@ const GUI = (function() { controller.ui.btnClose.addEventListener("click", () => { this.hideController(); window.DHT_ON_UNLOAD.forEach(f => f()); - window.DHT_LOADED = false; + delete window.DHT_ON_UNLOAD; + delete window.DHT_LOADED; }); STATE.onTrackingStateChanged(isTracking => {