mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
fix: rename localMode => devMode for clarity
This commit is contained in:
@@ -3,10 +3,12 @@ const { app } = require("electron");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const localMode = !app.isPackaged;
|
||||
|
||||
const devMode = !app.isPackaged;
|
||||
|
||||
|
||||
function resolveConfigPath() {
|
||||
if (localMode) {
|
||||
if (devMode) {
|
||||
const devConfigPath = path.join(__dirname, "config", "config.dev.json");
|
||||
if (!fs.existsSync(devConfigPath)) {
|
||||
const defaultConfigPath = path.join(__dirname, "config", "config.default.json");
|
||||
@@ -36,7 +38,7 @@ const configFeatures = loadFeatures();
|
||||
module.exports = {
|
||||
version: packageJson.version,
|
||||
applicationPort: "8787",
|
||||
localMode,
|
||||
devMode,
|
||||
DiscordRPCID: "1410934537051181146",
|
||||
configFeatures,
|
||||
featuresPath
|
||||
|
||||
Reference in New Issue
Block a user