Skip to content

The VS Code of video editing, built for agents.

TypeScript

Check for desktop environment in fullscreen state retrieval

konstantin-paulusbcc66680fa48
diff --git a/apps/web/src/context/editor-api/window.ts b/apps/web/src/context/editor-api/window.ts
index 721f9ec3..5ae14da0 100644
--- a/apps/web/src/context/editor-api/window.ts
+++ b/apps/web/src/context/editor-api/window.ts
@@ -6,6 +6,7 @@ import { mainBridge } from "@/lib/ipc";
import { MAIN_CHANNELS } from "@desktop/main-channels";
export function handleGetFullscreenState() {
+ if (!window.desktop) return Promise.resolve(false);
return mainBridge.call(MAIN_CHANNELS.WINDOW_IS_FULLSCREEN, undefined);
}