File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/NotificationForChatGPTWeb Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { toast, ToastContainer } from 'react-toastify'
5
5
import { useEffect } from 'react'
6
6
import 'react-toastify/dist/ReactToastify.css'
7
7
import { useTheme } from '../../hooks/use-theme.mjs'
8
+ import { getUserConfig } from '../../config/index.mjs'
8
9
9
10
const NotificationForChatGPTWeb = ( ) => {
10
11
const { t } = useTranslation ( )
@@ -45,11 +46,11 @@ const NotificationForChatGPTWeb = () => {
45
46
</ button >
46
47
< button
47
48
style = { buttonStyle }
48
- onClick = { ( ) => {
49
+ onClick = { async ( ) => {
49
50
Browser . runtime . sendMessage ( {
50
51
type : 'ACTIVATE_URL' ,
51
52
data : {
52
- tabId : config . chatgptJumpBackTabId ,
53
+ tabId : ( await getUserConfig ( ) ) . chatgptJumpBackTabId ,
53
54
} ,
54
55
} )
55
56
} }
You can’t perform that action at this time.
0 commit comments