feat: new menu item / shortcut to close all chats

This commit is contained in:
josc146
2023-05-12 23:12:24 +08:00
parent 7355f39286
commit 8b05fb4c5c
16 changed files with 54 additions and 23 deletions
+11
View File
@@ -39,4 +39,15 @@ export const config = {
})
},
},
closeAllChats: {
label: 'Close All Chats In This Page',
action: async () => {
Browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
Browser.tabs.sendMessage(tabs[0].id, {
type: 'CLOSE_CHATS',
data: {},
})
})
},
},
}