INNER CODE UNIT · JavaScript
createWindow
frangoteam/FUXA · app/electron/main.js:347
function createWindow() {
const win = new BrowserWindow({
width: 1024,
height: 768,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
sandbox: false // Disable renderer sandbox
}
});
// Load initial loading screen
const htmlPath = getHtmlPath('loading.html');
win.loadURL(pathToFileURL(htmlPath).href);
// Check fullscreen settings
loadConfig().then(config => {
if (config.fullscreen && config.fullscreen.enabled) {