From 408778b8b9d12a7d0bdcbf26a6bdbaeb69fc1f52 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Wed, 1 Jan 2025 16:49:32 +0800 Subject: [PATCH] feature: remove rewind window from recording --- src/electron/createWindow.ts | 6 +++++- src/global.d.ts | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/electron/createWindow.ts b/src/electron/createWindow.ts index 4ec7944..b78c875 100644 --- a/src/electron/createWindow.ts +++ b/src/electron/createWindow.ts @@ -98,9 +98,13 @@ export function createMainWindow(vitePort: string, closeCallBack: () => void) { }, roundedCorners: false, transparent: true, - show: false + show: false, + title: "OpenRewind Rewind Page" }); + // Exclude the window from the recording + window.setContentProtection(true); + windowState.manage(window); window.on("close", () => { diff --git a/src/global.d.ts b/src/global.d.ts index a3c0fd5..c6e1b32 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -9,10 +9,6 @@ interface Window { electron: { getScreenshot: () => Promise; }; - api: { - send: (channel: any, data: any) => void; - receive: (channel: any, func: any) => void; - }; settingsWindow: { close: () => void; };