From 9268ab845ebde3f710972db55f4bf6b720576ac8 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Wed, 11 Sep 2024 20:25:04 +0800 Subject: [PATCH] fix: Corrected image mime type in IPC message. - Corrected image mime type in IPC message. --- src/main/ipc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ipc.ts b/src/main/ipc.ts index ac4831c1db..a3f456fb19 100644 --- a/src/main/ipc.ts +++ b/src/main/ipc.ts @@ -46,7 +46,7 @@ export function registerIpc(mainWindow: BrowserWindow, app: Electron.App) { return { mime, base64, - data: `data:image/${mime};base64,${base64}` + data: `data:${mime};base64,${base64}` } } catch (error) { Logger.error('Error reading file:', error)