Skip to content

Commit 21de293

Browse files
committed
[Android] Fireproof UI tab closing.
1 parent 1b559aa commit 21de293

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ui/popup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,9 @@ addEventListener("unload", e => {
537537
if (UI.isBrowserAction) {
538538
window.close();
539539
} else {
540-
browser.tabs.remove(tab.id);
540+
(async () => {
541+
browser.tabs.remove((await browser.tabs.getCurrent()).id);
542+
})();
541543
}
542544
}
543545

0 commit comments

Comments
 (0)