1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-01-03 12:09:18 +01:00

refactoring

This commit is contained in:
Nicolas Constant 2020-10-01 22:01:09 -04:00
parent 45d735835b
commit c2f9c17189
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688

View File

@ -7,37 +7,27 @@ let win;
function createWindow() { function createWindow() {
// Create the browser window. // Create the browser window.
if(process.platform === "win32"){ let icon = join(__dirname, '/assets/icons/png/512x512.png');
win = new BrowserWindow({ if (process.platform === "win32") {
width: 377, icon = join(__dirname, '/assets/icons/win/icon.ico');
height: 800, }
title: "Sengi",
icon: join(__dirname, '/assets/icons/win/icon.ico'), win = new BrowserWindow({
backgroundColor: "#131925", width: 377,
useContentSize: true, height: 800,
webPreferences: { title: "Sengi",
spellcheck: false icon: icon,
} backgroundColor: "#131925",
// webPreferences: { useContentSize: true,
// contextIsolation: true, webPreferences: {
// nodeIntegration: false, spellcheck: false
// nodeIntegrationInWorker: false }
// } // webPreferences: {
}); // contextIsolation: true,
} else { // nodeIntegration: false,
win = new BrowserWindow({ // nodeIntegrationInWorker: false
width: 377, // }
height: 800, });
title: "Sengi",
//icon: join(__dirname, '/src/assets/icons/icon-512x512.png'),
icon: join(__dirname, '/assets/icons/png/512x512.png'),
backgroundColor: "#131925",
useContentSize: true,
webPreferences: {
spellcheck: false
}
});
}
win.setAutoHideMenuBar(true); win.setAutoHideMenuBar(true);
win.setMenuBarVisibility(false); win.setMenuBarVisibility(false);