mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-17 11:26:00 +08:00
chore
This commit is contained in:
@@ -5,6 +5,7 @@ import { toast, ToastContainer } from 'react-toastify'
|
||||
import { useEffect } from 'react'
|
||||
import 'react-toastify/dist/ReactToastify.css'
|
||||
import { useTheme } from '../../hooks/use-theme.mjs'
|
||||
import { getUserConfig } from '../../config/index.mjs'
|
||||
|
||||
const NotificationForChatGPTWeb = () => {
|
||||
const { t } = useTranslation()
|
||||
@@ -45,11 +46,11 @@ const NotificationForChatGPTWeb = () => {
|
||||
</button>
|
||||
<button
|
||||
style={buttonStyle}
|
||||
onClick={() => {
|
||||
onClick={async () => {
|
||||
Browser.runtime.sendMessage({
|
||||
type: 'ACTIVATE_URL',
|
||||
data: {
|
||||
tabId: config.chatgptJumpBackTabId,
|
||||
tabId: (await getUserConfig()).chatgptJumpBackTabId,
|
||||
},
|
||||
})
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user