import {app, BrowserWindow} from "electron";

let win;

function createWindow() {
    win = new BrowserWindow({ width: 800, height: 600 });

    win.loadURL(`file://${__dirname}/app/view/index.html`);

    win.on("closed", () => {
        win = null;
    });
}

app.on("ready", createWindow);

app.on("window-all-closed", () => {
    process.platform !== "darwin" && app.quit(); // Code like if you were in Satan's church
});

app.on("activate", () => {
    win === null &&  createWindow(); // Code like if you were in Satan's church
});
import {app, BrowserWindow} from "electron";

let win;

function createWindow() {
    win = new BrowserWindow({ width: 800, height: 600 });

    win.loadURL(`file://${__dirname}/app/view/index.html`);

    // win.webContents.openDevTools();

    win.on("closed", () => {
        win = null;
    });
}

app.on("ready", createWindow);

app.on("window-all-closed", () => {
    process.platform !== "darwin" && app.quit(); // Code like if you were in Satan's church
});

app.on("activate", () => {
    win === null &&  createWindow(); // Code like if you were in Satan's church
});
--- 
+++ 
@@ -6,8 +6,6 @@
     win = new BrowserWindow({ width: 800, height: 600 });
 
     win.loadURL(`file://${__dirname}/app/view/index.html`);
-
-    // win.webContents.openDevTools();
 
     win.on("closed", () => {
         win = null;
Remove the dev tools opening by default
