diff options
Diffstat (limited to 'source/background.ts')
-rw-r--r-- | source/background.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/background.ts b/source/background.ts index 1e182660..6cca0d7f 100644 --- a/source/background.ts +++ b/source/background.ts @@ -12,6 +12,8 @@ browser.runtime.onMessage.addListener((message, {tab}) => { active: false }); } + } else if (message?.closeTab) { + void browser.tabs.remove(tab!.id!); } }); |