Refactor ZenGlanceManager.mjs to destroy current browser when closing glance

This commit is contained in:
mr. M 2024-10-31 14:26:21 +01:00
parent 5e791df74c
commit b8d9d79ccc
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 17 additions and 6 deletions

View file

@ -163,6 +163,7 @@
this.browserWrapper.removeAttribute("animate-end");
setTimeout(() => {
this.#currentBrowser?.destroy();
this.#currentBrowser?.remove();
this.#currentTab?.remove();
this.#currentBrowser = null;