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

This commit is contained in:
chylex 2022-02-12 20:40:44 +01:00
parent d772f7ed71
commit bde4cb06f4
No known key found for this signature in database
GPG Key ID: 4DE42C8F19A80548

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 => {