mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
1.0.1 Commit
This commit is contained in:
11
main.js
11
main.js
@@ -24,17 +24,22 @@ let mainWindow;
|
||||
|
||||
async function createWindow() {
|
||||
logger.info("Creation de la fenetre...");
|
||||
|
||||
if (mainWindow) {
|
||||
logger.warn("La fenetre existe deja, pas de nouvelle creation");
|
||||
return;
|
||||
}
|
||||
mainWindow = new BrowserWindow({
|
||||
width: 1000,
|
||||
height: 700,
|
||||
title: "Freedom Loader",
|
||||
width: 750,
|
||||
height: 800,
|
||||
minWidth: 750,
|
||||
minHeight: 800,
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
contextIsolation: true,
|
||||
},
|
||||
// titleBarStyle: 'hidden',
|
||||
});
|
||||
|
||||
try {
|
||||
@@ -71,4 +76,4 @@ app.on("window-all-closed", () => {
|
||||
|
||||
app.on("before-quit", () => {
|
||||
logSessionEnd();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user