mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-19 11:22:09 +08:00
improve NotificationForChatGPTWeb (#710)
This commit is contained in:
@@ -324,7 +324,11 @@ async function prepareForForegroundRequests() {
|
||||
|
||||
if (!chatgptWebModelKeys.some((model) => userConfig.activeApiModes.includes(model))) return
|
||||
|
||||
if (chatgptWebModelKeys.includes(userConfig.modelName)) {
|
||||
const url = new URL(window.location.href)
|
||||
if (
|
||||
url.searchParams.has('chatgptbox_notification') &&
|
||||
chatgptWebModelKeys.includes(userConfig.modelName)
|
||||
) {
|
||||
const div = document.createElement('div')
|
||||
document.body.append(div)
|
||||
render(<NotificationForChatGPTWeb container={div} />, div)
|
||||
|
||||
Reference in New Issue
Block a user