mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-28 20:54:48 +08:00
chore: only display the banner when choosing ChatGPT Web Mode (#287)
This commit is contained in:
@@ -313,9 +313,11 @@ async function prepareForForegroundRequests() {
|
||||
|
||||
if (!chatgptWebModelKeys.some((model) => userConfig.activeApiModes.includes(model))) return
|
||||
|
||||
const div = document.createElement('div')
|
||||
document.body.append(div)
|
||||
render(<NotificationForChatGPTWeb container={div} />, div)
|
||||
if (chatgptWebModelKeys.includes(userConfig.modelName)) {
|
||||
const div = document.createElement('div')
|
||||
document.body.append(div)
|
||||
render(<NotificationForChatGPTWeb container={div} />, div)
|
||||
}
|
||||
|
||||
await Browser.runtime.sendMessage({
|
||||
type: 'SET_CHATGPT_TAB',
|
||||
|
||||
Reference in New Issue
Block a user