mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-14 07:37:13 +03:00
Dispose of all window properties when the DHT panel is closed (app)
This commit is contained in:
parent
d772f7ed71
commit
bde4cb06f4
@ -55,7 +55,8 @@ const GUI = (function() {
|
|||||||
controller.ui.btnClose.addEventListener("click", () => {
|
controller.ui.btnClose.addEventListener("click", () => {
|
||||||
this.hideController();
|
this.hideController();
|
||||||
window.DHT_ON_UNLOAD.forEach(f => f());
|
window.DHT_ON_UNLOAD.forEach(f => f());
|
||||||
window.DHT_LOADED = false;
|
delete window.DHT_ON_UNLOAD;
|
||||||
|
delete window.DHT_LOADED;
|
||||||
});
|
});
|
||||||
|
|
||||||
STATE.onTrackingStateChanged(isTracking => {
|
STATE.onTrackingStateChanged(isTracking => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user