mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
format code
This commit is contained in:
parent
99873a0767
commit
f5136a0adb
@ -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)
|
||||
})
|
||||
|
||||
@ -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'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user