mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Change method for check if pass dev parameter
This commit is contained in:
parent
a3d4049c9c
commit
b41bda569d
@ -51,7 +51,7 @@ function createWindow() {
|
||||
mainWindow.loadURL("http://localhost:" + config.port);
|
||||
|
||||
// Open the DevTools if run with "npm start dev"
|
||||
if(process.argv[2] == "dev") {
|
||||
if (process.argv.includes("dev")) {
|
||||
mainWindow.webContents.openDevTools();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user