Fix Formating

This commit is contained in:
Johannes7k75 2023-04-28 18:10:56 +02:00
parent 8f5cc2099a
commit 94cedd3e1a
1 changed files with 83 additions and 82 deletions

View File

@ -11,6 +11,7 @@ const buildInfoFile = path.resolve(appPath, "..", "build_info.json");
// Locate data path to find transparency settings
let dataPath = "";
if (process.platform === "win32" || process.platform === "darwin") dataPath = path.join(electron.app.getPath("userData"), "..");
if (process.argv.filter((arg) => arg.startsWith("--bd-data-dir")).length > 0)
dataPath = process.argv.filter((arg) => arg.startsWith("--bd-data-dir"))[0].split("=")[1];
else if (process.platform === "win32" || process.platform === "darwin")