mirror of https://github.com/keeweb/keeweb.git
fixed white screen on startup
This commit is contained in:
parent
9ee1080240
commit
f82312b9d0
|
@ -22,6 +22,7 @@ let htmlPath = process.argv.filter(arg => arg.startsWith('--htmlpath=')).map(arg
|
||||||
if (!htmlPath) {
|
if (!htmlPath) {
|
||||||
htmlPath = 'file://' + path.join(__dirname, 'index.html');
|
htmlPath = 'file://' + path.join(__dirname, 'index.html');
|
||||||
}
|
}
|
||||||
|
const showDevToolsOnStart = process.argv.some(arg => arg.startsWith('--devtools'));
|
||||||
|
|
||||||
app.setPath('userData', path.join(tempUserDataPath, tempUserDataPathRand));
|
app.setPath('userData', path.join(tempUserDataPath, tempUserDataPathRand));
|
||||||
|
|
||||||
|
@ -141,6 +142,9 @@ function createMainWindow() {
|
||||||
});
|
});
|
||||||
setMenu();
|
setMenu();
|
||||||
mainWindow.loadURL(htmlPath);
|
mainWindow.loadURL(htmlPath);
|
||||||
|
if (showDevToolsOnStart) {
|
||||||
|
mainWindow.openDevTools();
|
||||||
|
}
|
||||||
mainWindow.webContents.on('dom-ready', () => {
|
mainWindow.webContents.on('dom-ready', () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
|
|
|
@ -2,6 +2,7 @@ Release notes
|
||||||
-------------
|
-------------
|
||||||
##### v1.6.0 (2017-12-03)
|
##### v1.6.0 (2017-12-03)
|
||||||
`-` fixed white screen on startup
|
`-` fixed white screen on startup
|
||||||
|
`+` `--devtools` command line argument
|
||||||
|
|
||||||
##### v1.6.0 (2017-12-02)
|
##### v1.6.0 (2017-12-02)
|
||||||
`+` desktop apps integrity protection
|
`+` desktop apps integrity protection
|
||||||
|
|
Loading…
Reference in New Issue