1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-27 07:45:08 +02:00

fix for electron v1.0.1

This commit is contained in:
antelle 2016-08-14 23:25:37 +03:00
parent 201ad00c49
commit d7124164be

View File

@ -114,7 +114,9 @@ function createMainWindow() {
});
setMenu();
mainWindow.loadURL(htmlPath);
mainWindow.setContentProtection(true);
if (mainWindow.setContentProtection) {
mainWindow.setContentProtection(true);
}
mainWindow.webContents.on('dom-ready', () => {
setTimeout(() => {
mainWindow.show();