mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Fix: Reduce Line Complexity featuresPath
This commit is contained in:
@@ -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 = {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user