Skip to content

Commit

Permalink
version: Release 0.2.9 - Scap recording engine integration
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Jul 31, 2024
1 parent 845aff8 commit 510126e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/desktop/src/components/windows/Camera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ export const Camera = () => {
);
const [overlaySize, setOverlaySize] = useState<"sm" | "lg">("sm");
const [overlayShape, setOverlayShape] = useState<"round" | "square">(
(localStorage.getItem("cameraOverlayShape") as "round" | "square") ||
"round"
typeof localStorage !== "undefined"
? (localStorage.getItem("cameraOverlayShape") as "round" | "square") ||
"round"
: "round"
);

useEffect(
() => localStorage.setItem("cameraOverlayShape", overlayShape),
() =>
typeof localStorage !== "undefined" &&
localStorage.setItem("cameraOverlayShape", overlayShape),
[overlayShape]
);

Expand Down

1 comment on commit 510126e

@vercel
Copy link

@vercel vercel bot commented on 510126e Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.