Skip to content

Commit 76f916b

Browse files
committed
chore
1 parent 27d3f1b commit 76f916b

File tree

1 file changed

+3
-2
lines changed
  • src/components/NotificationForChatGPTWeb

1 file changed

+3
-2
lines changed

src/components/NotificationForChatGPTWeb/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { toast, ToastContainer } from 'react-toastify'
55
import { useEffect } from 'react'
66
import 'react-toastify/dist/ReactToastify.css'
77
import { useTheme } from '../../hooks/use-theme.mjs'
8+
import { getUserConfig } from '../../config/index.mjs'
89

910
const NotificationForChatGPTWeb = () => {
1011
const { t } = useTranslation()
@@ -45,11 +46,11 @@ const NotificationForChatGPTWeb = () => {
4546
</button>
4647
<button
4748
style={buttonStyle}
48-
onClick={() => {
49+
onClick={async () => {
4950
Browser.runtime.sendMessage({
5051
type: 'ACTIVATE_URL',
5152
data: {
52-
tabId: config.chatgptJumpBackTabId,
53+
tabId: (await getUserConfig()).chatgptJumpBackTabId,
5354
},
5455
})
5556
}}

0 commit comments

Comments
 (0)