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}`); };