From f82312b9d00e927bea8677f22f765dc1bfc38741 Mon Sep 17 00:00:00 2001 From: antelle Date: Sun, 3 Dec 2017 01:04:16 +0100 Subject: [PATCH] fixed white screen on startup --- desktop/app.js | 4 ++++ release-notes.md | 1 + 2 files changed, 5 insertions(+) diff --git a/desktop/app.js b/desktop/app.js index 955dd57a..bb75f600 100644 --- a/desktop/app.js +++ b/desktop/app.js @@ -22,6 +22,7 @@ let htmlPath = process.argv.filter(arg => arg.startsWith('--htmlpath=')).map(arg if (!htmlPath) { htmlPath = 'file://' + path.join(__dirname, 'index.html'); } +const showDevToolsOnStart = process.argv.some(arg => arg.startsWith('--devtools')); app.setPath('userData', path.join(tempUserDataPath, tempUserDataPathRand)); @@ -141,6 +142,9 @@ function createMainWindow() { }); setMenu(); mainWindow.loadURL(htmlPath); + if (showDevToolsOnStart) { + mainWindow.openDevTools(); + } mainWindow.webContents.on('dom-ready', () => { setTimeout(() => { mainWindow.show(); diff --git a/release-notes.md b/release-notes.md index 8795893b..4c8f5d49 100644 --- a/release-notes.md +++ b/release-notes.md @@ -2,6 +2,7 @@ Release notes ------------- ##### v1.6.0 (2017-12-03) `-` fixed white screen on startup +`+` `--devtools` command line argument ##### v1.6.0 (2017-12-02) `+` desktop apps integrity protection