From 0dc4d6c61736aa7c0282568fb21a22913f495dff Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 12 May 2025 21:57:49 -0700 Subject: [PATCH] fix ipc naming for get system platform (#140) --- src/ipc/handlers/window_handlers.ts | 2 +- src/preload.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipc/handlers/window_handlers.ts b/src/ipc/handlers/window_handlers.ts index eecf44c..ab33aa9 100644 --- a/src/ipc/handlers/window_handlers.ts +++ b/src/ipc/handlers/window_handlers.ts @@ -49,5 +49,5 @@ export function registerWindowHandlers() { ipcMain.handle("window:minimize", handleMinimize); ipcMain.handle("window:maximize", handleMaximize); ipcMain.handle("window:close", handleClose); - ipcMain.handle("window:get-platform", handleGetSystemPlatform); + ipcMain.handle("get-system-platform", handleGetSystemPlatform); } diff --git a/src/preload.ts b/src/preload.ts index 77b0e44..3e1d47a 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -63,7 +63,7 @@ const validInvokeChannels = [ "window:minimize", "window:maximize", "window:close", - "window:get-platform", + "get-system-platform", "upload-to-signed-url", "delete-chat", "delete-messages",