From c72e85030f9ce5384433b31a9af9cce53dec1234 Mon Sep 17 00:00:00 2001 From: Nick Oates Date: Fri, 18 Oct 2024 09:26:51 -0700 Subject: [PATCH] Fix themer --- plugins/Themer/src/editor.native.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Themer/src/editor.native.ts b/plugins/Themer/src/editor.native.ts index 2607ad0..bbb24ee 100644 --- a/plugins/Themer/src/editor.native.ts +++ b/plugins/Themer/src/editor.native.ts @@ -23,6 +23,9 @@ export const openEditor = async (css: string) => { return { action: "deny" }; }); + ipcMain.removeHandler("THEMER_GET_CSS"); + ipcMain.handle("THEMER_GET_CSS", () => css); + win.loadURL(`data:text/html;base64,${editor}`); };