Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix window capture occluder

Brendan Allan357bb80004dc
diff --git a/apps/desktop/src/routes/window-capture-occluder.tsx b/apps/desktop/src/routes/window-capture-occluder.tsx
index 8daee1e20..508f5adbb 100644
--- a/apps/desktop/src/routes/window-capture-occluder.tsx
+++ b/apps/desktop/src/routes/window-capture-occluder.tsx
@@ -1,19 +1,16 @@
-import { createQuery } from "@tanstack/solid-query";
-import { createEffect, Show, Suspense } from "solid-js";
+import { Show, Suspense } from "solid-js";
import { createCurrentRecordingQuery } from "../utils/queries";
export default function () {
const currentRecording = createCurrentRecordingQuery();
- createEffect(() => console.log(currentRecording.data));
-
return (
<Suspense>
<Show
when={
- currentRecording.data?.[0] &&
- currentRecording.data[0].displaySource.variant === "window" &&
- currentRecording.data[0].displaySource.bounds
+ currentRecording.data &&
+ currentRecording.data.displaySource.variant === "window" &&
+ currentRecording.data.displaySource.bounds
}
>
{(bounds) => (