fix消息通信

This commit is contained in:
IndieKKY
2025-02-24 09:13:25 +08:00
parent 5bcedf0c9d
commit ae60303a15
25 changed files with 140 additions and 135 deletions

View File

@@ -8,7 +8,7 @@ import OptionsPage from './pages/OptionsPage'
import {handleJson} from '@kky002/kky-util'
import {useLocalStorage} from '@kky002/kky-hooks'
import {Toaster} from 'react-hot-toast'
import useMessagingService from './hooks/useMessageService'
import useMessageService from './hooks/useMessageService'
import MainPage from './pages/MainPage'
function App() {
@@ -44,7 +44,7 @@ function App() {
useLocalStorage<TempData>('chrome_client', STORAGE_TEMP, savedTempData, onLoadTemp)
// services
useMessagingService()
useMessageService()
return <div>
<Toaster position={path === 'app'?'bottom-center':'top-center'}/>