mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-09-11 12:00:52 +08:00
feat: improve web mode notification (#309)
This commit is contained in:
@@ -302,7 +302,7 @@ async function overwriteAccessToken() {
|
||||
}
|
||||
|
||||
async function prepareForForegroundRequests() {
|
||||
if (location.hostname !== 'chat.openai.com') return
|
||||
if (location.hostname !== 'chat.openai.com' || location.pathname === '/auth/login') return
|
||||
|
||||
const userConfig = await getUserConfig()
|
||||
|
||||
@@ -313,10 +313,8 @@ async function prepareForForegroundRequests() {
|
||||
render(<NotificationForChatGPTWeb container={div} />, div)
|
||||
|
||||
await Browser.runtime.sendMessage({
|
||||
type: 'PIN_TAB',
|
||||
data: {
|
||||
saveAsChatgptConfig: true,
|
||||
},
|
||||
type: 'SET_CHATGPT_TAB',
|
||||
data: {},
|
||||
})
|
||||
|
||||
registerPortListener(async (session, port) => {
|
||||
|
||||
Reference in New Issue
Block a user