more configuration tweaks

This commit is contained in:
Roman committed 2020-06-13 13:11:01 +03:00
1 parent ec7b8661d9
commit 8f4db5bd53
7 files changed
+39 -38

No files matched your search

+9 -8
View File
@@ -4,19 +4,20 @@ import "../common/system-ca"
import { app, BrowserWindow } from "electron"
console.log('MAIN', process.resourcesPath)
console.log('userData', app.getPath("userData"))
app.whenReady().then(function start() {
console.log('APP READY')
var window = new BrowserWindow({
width: 600,
height: 500,
app.whenReady().then(async function start() {
var mainWindow = new BrowserWindow({
width: 1024,
height: 768,
show: false,
webPreferences: {
devTools: true,
nodeIntegration: true,
}
});
window.loadFile("index.html");
window.show();
await mainWindow.loadFile("dist/index.html");
mainWindow.show();
mainWindow.focus();
});