DB paths working on mac now
This commit is contained in:
1 parent
43f67e0739
commit
4e577c1da8
4 files changed
+13
-8
No files matched your search
+2
-2
@@ -15,8 +15,8 @@ export function getUserDataPath(): string {
|
||||
const electron = getElectron();
|
||||
|
||||
// When running in Electron and app is ready
|
||||
if (electron?.app?.isReady() && process.env.NODE_ENV !== "development") {
|
||||
return electron.app.getPath("userData");
|
||||
if (process.env.NODE_ENV !== "development") {
|
||||
return electron!.app.getPath("userData");
|
||||
}
|
||||
|
||||
// For development or when the Electron app object isn't available
|
||||
|
||||
Reference in new issue
Block a user