Multiple manager improvements and bug fixes

This commit is contained in:
Pax1601
2024-03-10 18:38:55 +01:00
parent 8c7f6abb1c
commit 396c061a3e
7 changed files with 154 additions and 53 deletions

View File

@@ -8,6 +8,8 @@ let window;
/* Add the System32 folder to the environment for the shortcuts creation to work properly */
process.env['PATH'] = process.env['PATH'] + "%WINDIR%\\System32;"
require('@electron/remote/main').initialize()
function createWindow() {
const window = new electronBrowserWindow({
width: 1200,
@@ -18,11 +20,13 @@ function createWindow() {
webPreferences: {
contextIsolation: true,
preload: path.join(__dirname, "javascripts", 'preload.js'),
nodeIntegration: true,
nodeIntegration: true
},
icon: "./../img/olympus_configurator.ico"
});
require("@electron/remote/main").enable(window.webContents);
window.loadFile('index.html').then(() => { window.show(); });
window.on("maximize", () => {