Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Handle errors during titlebar initialization

Richie McIlroy2b1eb9e09f0a
diff --git a/apps/desktop/src/routes/mode-select.tsx b/apps/desktop/src/routes/mode-select.tsx
index cbd8fe8d7..2726a9240 100644
--- a/apps/desktop/src/routes/mode-select.tsx
+++ b/apps/desktop/src/routes/mode-select.tsx
@@ -14,7 +14,11 @@ const ModeSelectWindow = () => {
const window = getCurrentWindow();
if (isWindows) {
- unlistenResize = await initializeTitlebar();
+ try {
+ unlistenResize = await initializeTitlebar();
+ } catch (error) {
+ console.error("Failed to initialize titlebar:", error);
+ }
}
try {