format code

This commit is contained in:
beyondkmp 2025-10-30 13:09:58 +08:00
parent 99873a0767
commit f5136a0adb
2 changed files with 2 additions and 5 deletions

View File

@ -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)
})

View File

@ -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'