Fix: Reduce Line Complexity featuresPath

This commit is contained in:
MasterAcnolo
2026-02-19 22:08:56 +01:00
parent 83ca963502
commit 70d62959ca

View File

@@ -5,7 +5,8 @@ const path = require("path");
const localMode = !app.isPackaged; const localMode = !app.isPackaged;
const featuresPath = localMode ? path.join(__dirname, "./config/config.json") : path.join(path.join(process.resourcesPath,"config/" ,"config.json")); // Change path for JSON file
const featuresPath = path.join(path.join(`${localMode ? __dirname : process.resourcesPath}`,"config/" , "config.json"));
let features = {}; let features = {};