fix: review finder and view as json (#1000)

This commit is contained in:
Louis 2023-12-14 14:30:38 +07:00 committed by GitHub
parent 01939afb40
commit e71de25f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,15 @@ export function handleAppIPCs() {
shell.openExternal(url) shell.openExternal(url)
}) })
/**
* Opens a URL in the user's default browser.
* @param _event - The IPC event object.
* @param url - The URL to open.
*/
ipcMain.handle(AppRoute.openFileExplore, async (_event, url) => {
shell.openPath(url)
})
/** /**
* Relaunches the app in production - reload window in development. * Relaunches the app in production - reload window in development.
* @param _event - The IPC event object. * @param _event - The IPC event object.