Fix tests

This commit is contained in:
Yuya Ochiai
2017-03-06 21:31:17 +09:00
parent 5b26c9cf69
commit d8abb4b9c7
3 changed files with 4 additions and 4 deletions

View File

@@ -481,7 +481,7 @@ app.on('ready', () => {
}
// and load the index.html of the app.
if (isDev) {
if (isDev && !argv.testMode) {
mainWindow.loadURL('http://localhost:8080/browser/index.html');
} else {
mainWindow.loadURL('file://' + __dirname + '/browser/index.html');