Kaydet (Commit) c7cccbcb authored tarafından Eda Altuntaş's avatar Eda Altuntaş

Elektron tam ekran ayarları yapıldı

üst 5155a070
......@@ -17,12 +17,14 @@ async function createWindow() {
height: 600,
autoHideMenuBar: true,
darkTheme: true,
show: false,
webPreferences: {
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION,
preload: path.join(__dirname, "preload.js")
}
});
mainWindow = win;
win.maximize();
if (process.env.WEBPACK_DEV_SERVER_URL) {
await win.loadURL(process.env.WEBPACK_DEV_SERVER_URL);
if (!process.env.IS_TEST) win.webContents.openDevTools();
......@@ -30,6 +32,7 @@ async function createWindow() {
createProtocol("app");
win.loadURL("app://./index.html");
}
win.show();
}
app.on("window-all-closed", () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment