feat: improve web mode notification (#309)

This commit is contained in:
josc146
2023-05-08 15:50:42 +08:00
parent b487c03ab3
commit e95372d77d
12 changed files with 107 additions and 49 deletions
+6
View File
@@ -143,6 +143,12 @@ Browser.runtime.onMessage.addListener(async (message, sender) => {
}
break
}
case 'SET_CHATGPT_TAB': {
await setUserConfig({
chatgptTabId: sender.tab.id,
})
break
}
case 'ACTIVATE_URL':
await Browser.tabs.update(message.data.tabId, { active: true })
break