mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
fix variable problems (#3304)
related to #3302 - fix MM_PORT variable not used in electron - fix to allow full path for MM_CONFIG_FILE variable
This commit is contained in:
parent
aad3eefc62
commit
a927eb20d9
@ -50,6 +50,7 @@ _This release is scheduled to be released on 2024-01-01._
|
|||||||
- Fix style issues after prettier update
|
- Fix style issues after prettier update
|
||||||
- Fix calendar test (#3291) by moving "Exdate check" from e2e to electron to run on a Thursday
|
- Fix calendar test (#3291) by moving "Exdate check" from e2e to electron to run on a Thursday
|
||||||
- Fix calendar config params `fetchInterval` and `excludedEvents` were never used from single calendar config (#3297)
|
- Fix calendar config params `fetchInterval` and `excludedEvents` were never used from single calendar config (#3297)
|
||||||
|
- Fix MM_PORT variable not used in electron and allow full path for MM_CONFIG_FILE variable (#3302)
|
||||||
|
|
||||||
## [2.25.0] - 2023-10-01
|
## [2.25.0] - 2023-10-01
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Log.log(`Starting MagicMirror: v${global.version}`);
|
|||||||
global.root_path = path.resolve(`${__dirname}/../`);
|
global.root_path = path.resolve(`${__dirname}/../`);
|
||||||
|
|
||||||
if (process.env.MM_CONFIG_FILE) {
|
if (process.env.MM_CONFIG_FILE) {
|
||||||
global.configuration_file = process.env.MM_CONFIG_FILE;
|
global.configuration_file = process.env.MM_CONFIG_FILE.replace(`${global.root_path}/`, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Hotfix Pull Request
|
// FIXME: Hotfix Pull Request
|
||||||
|
@ -79,7 +79,8 @@ function createWindow () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let address = (config.address === void 0) | (config.address === "") | (config.address === "0.0.0.0") ? (config.address = "localhost") : config.address;
|
let address = (config.address === void 0) | (config.address === "") | (config.address === "0.0.0.0") ? (config.address = "localhost") : config.address;
|
||||||
mainWindow.loadURL(`${prefix}${address}:${config.port}`);
|
const port = process.env.MM_PORT || config.port;
|
||||||
|
mainWindow.loadURL(`${prefix}${address}:${port}`);
|
||||||
|
|
||||||
// Open the DevTools if run with "npm start dev"
|
// Open the DevTools if run with "npm start dev"
|
||||||
if (process.argv.includes("dev")) {
|
if (process.argv.includes("dev")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user