diff --git a/src/main/services/ShortcutService.ts b/src/main/services/ShortcutService.ts index 328da0816c..0882c3dfc0 100644 --- a/src/main/services/ShortcutService.ts +++ b/src/main/services/ShortcutService.ts @@ -139,10 +139,7 @@ export class ShortcutService { } void targetWindow.webContents - .executeJavaScript( - `typeof window.navigate === 'function' && window.navigate('/settings/provider')`, - true - ) + .executeJavaScript(`typeof window.navigate === 'function' && window.navigate('/settings/provider')`, true) .catch((error) => { logger.warn('Failed to navigate to settings from shortcut:', error as Error) }) diff --git a/src/renderer/src/handler/NavigationHandler.tsx b/src/renderer/src/handler/NavigationHandler.tsx index 99e1f84ad5..ac280802c2 100644 --- a/src/renderer/src/handler/NavigationHandler.tsx +++ b/src/renderer/src/handler/NavigationHandler.tsx @@ -1,5 +1,5 @@ -import { IpcChannel } from '@shared/IpcChannel' import { useShortcut } from '@renderer/hooks/useShortcuts' +import { IpcChannel } from '@shared/IpcChannel' import { useEffect } from 'react' import { useLocation, useNavigate } from 'react-router-dom'