format code
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user