mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
fix electron start loadurl on windows when address="0.0.0.0" (#3268)
> - Does the pull request solve a **related** issue? Fixes #2550 > - What does the pull request accomplish? Use a list if needed. changes the loadUrl to use localhost, as electron and MM are on this same system the mm 'server' is still listening on all adapters, including localhost
This commit is contained in:
parent
70ddd80632
commit
247115d2e4
@ -36,6 +36,7 @@ _This release is scheduled to be released on 2024-01-01._
|
||||
- Fix issue template (#3167)
|
||||
- Fix #3256 filter out bad results from rrule.between
|
||||
- Fix calendar events sometimes not respecting deleted events (#3250)
|
||||
- Fix electron loadurl locally on Windows when address "0.0.0.0" (#2550)
|
||||
|
||||
## [2.25.0] - 2023-10-01
|
||||
|
||||
|
@ -77,7 +77,7 @@ function createWindow() {
|
||||
prefix = "http://";
|
||||
}
|
||||
|
||||
let address = (config.address === void 0) | (config.address === "") ? (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}`);
|
||||
|
||||
// Open the DevTools if run with "npm start dev"
|
||||
|
Loading…
x
Reference in New Issue
Block a user