function createWindow()

in src/index.ts [17:38]


function createWindow() {
  if (myWindow) {
    return myWindow;
  }

  const win = new BrowserWindow({
    width: 1680,
    height: 1050,
    webPreferences: {
      nodeIntegration: true,
      contextIsolation: false,
    },
  });

  win.loadFile("../assets/index.html").then(() => {
    if (electronIsDev.valueOf()) {
      win.webContents.toggleDevTools();
    }
  });

  return win;
}