Dispose of all window properties when the DHT panel is closed (app)

This commit is contained in:
chylex committed 2022-02-12 20:43:35 +01:00
1 parent d772f7ed71
commit bde4cb06f4
1 file changed
+2 -1
+2 -1
View File
@@ -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 => {