INNER CODE UNIT · JavaScript

applyTextSelectionSettings

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

function applyTextSelectionSettings(win, enabled) {
    if (!enabled) {
        // Disable text selection using CSS injection
        const css = `
            * {
                user-select: none !important;
                -webkit-user-select: none !important;
                -moz-user-select: none !important;
                -ms-user-select: none !important;
            }
        `;
        win.webContents.insertCSS(css).catch(err => {
            console.error('Failed to inject text selection CSS:', err);
        });
    } else {
        // Re-enable text selection
        const css = `
            * {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…