Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

properly handle incorrect export format selection

Brendan Allan5eabe1da6d6d
diff --git a/apps/desktop/src/routes/editor/ExportDialog.tsx b/apps/desktop/src/routes/editor/ExportDialog.tsx
index 21176f399..9640c52b2 100644
--- a/apps/desktop/src/routes/editor/ExportDialog.tsx
+++ b/apps/desktop/src/routes/editor/ExportDialog.tsx
@@ -125,9 +125,7 @@ export function ExportDialog() {
{ name: "export_settings" }
);
- if ((settings.format as string) === "MP4") {
- setSettings("format", "Mp4");
- }
+ if (!["Mp4", "Gif"].includes(settings.format)) setSettings("format", "Mp4");
const exportWithSettings = (onProgress: (progress: FramesRendered) => void) =>
exportVideo(