mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-08 02:39:20 +08:00
feat: new menu item / shortcut to close all chats
This commit is contained in:
@@ -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: {},
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user