mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 01:26:29 -04: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
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue