mirror of
https://github.com/NicolasConstant/sengi
synced 2025-01-03 12:09:18 +01:00
refactoring
This commit is contained in:
parent
45d735835b
commit
c2f9c17189
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user