INNER CODE UNIT · JavaScript

openSettingsWindow

frangoteam/FUXA · app/electron/main.js:303

async function openSettingsWindow(parentWin) {
    const settingsWin = new BrowserWindow({
        width: 500,
        height: 400,
        minWidth: 400,
        minHeight: 250,
        parent: parentWin,
        modal: true,
        resizable: true,
        webPreferences: {
            nodeIntegration: true,
            contextIsolation: false,
            sandbox: false // Disable renderer sandbox
        },
        show: false
    });

    settingsWin.setMenu(null);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…