From e71de25f5e6d851463e26365ec6bc192bb493a1c Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 14 Dec 2023 14:30:38 +0700 Subject: [PATCH] fix: review finder and view as json (#1000) --- electron/handlers/app.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/electron/handlers/app.ts b/electron/handlers/app.ts index d2b3acda1..f688d3d47 100644 --- a/electron/handlers/app.ts +++ b/electron/handlers/app.ts @@ -63,6 +63,15 @@ export function handleAppIPCs() { 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. * @param _event - The IPC event object.