mirror of https://github.com/keeweb/keeweb
fixed white screen on startup
parent
9ee1080240
commit
f82312b9d0
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue