mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 09:42:21 -04:00
Added dev parameter
This commit is contained in:
parent
c4f9388668
commit
b98237fa44
3 changed files with 7 additions and 2 deletions
|
@ -27,8 +27,10 @@ function createWindow() {
|
|||
//mainWindow.loadURL('file://' + __dirname + '../../index.html');
|
||||
mainWindow.loadURL("http://localhost:" + config.port);
|
||||
|
||||
// Open the DevTools.
|
||||
//mainWindow.webContents.openDevTools();
|
||||
// Open the DevTools if run with "npm start dev"
|
||||
if(process.argv[2] == "dev"){
|
||||
mainWindow.webContents.openDevTools();
|
||||
}
|
||||
|
||||
// Emitted when the window is closed.
|
||||
mainWindow.on("closed", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue