Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix: cast Linux portal sentinel as ProcessedDesktopSource to fix TS build error

webadderalld2f5bbc9a677
diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.ts
index 0a1db292..b5867865 100644
--- a/src/hooks/useScreenRecorder.ts
+++ b/src/hooks/useScreenRecorder.ts
@@ -840,7 +840,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
const selectedSource =
existingSource ??
(platform === "linux"
- ? { id: "screen:linux-portal", name: "Linux Portal" }
+ ? { id: "screen:linux-portal", name: "Linux Portal" } as ProcessedDesktopSource
: null);
if (!selectedSource) {
alert("Please select a source to record");