Remove separate upgrades from desktop

This commit is contained in:
Zef Hemel
2023-01-04 10:45:11 +01:00
parent c3d5f4275e
commit b0c9fd0124
2 changed files with 8 additions and 8 deletions
+1 -7
View File
@@ -69,14 +69,8 @@ function determineSilverBulletScriptPath(): string {
if (!existsSync(scriptPath)) {
console.log("Dev mode");
// Assumption: we're running in dev mode (npm start)
return "../silverbullet.ts";
scriptPath = "../silverbullet.ts";
}
const userData = app.getPath("userData");
if (existsSync(`${userData}/silverbullet.js`)) {
// Custom downloaded (upgraded) version
scriptPath = `${userData}/silverbullet.js`;
}
return scriptPath;
}