Fixing bug where options window won't close in some cases.

This commit is contained in:
Ryan Breen
2023-02-11 23:27:58 -05:00
parent 6c83c24921
commit c30b82c2d1
3 changed files with 8 additions and 3 deletions

View File

@@ -254,6 +254,11 @@ Alpine.data('options', () => ({
}
},
async closeOptions() {
const tab = await browser.tabs.getCurrent();
await browser.tabs.remove(tab.id);
},
// Properties
get recommendedRelays() {