github repo creation flow

This commit is contained in:
Will Chen
2025-04-14 21:55:51 -07:00
parent 7ad83a2bdc
commit 05a97d31c4
12 changed files with 288 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ export function getUserDataPath(): string {
const electron = getElectron();
// When running in Electron and app is ready
if (process.env.NODE_ENV !== "development") {
if (process.env.NODE_ENV !== "development" && electron) {
return electron!.app.getPath("userData");
}