How to use the about-window.default function in about-window

To help you get started, we’ve selected a few about-window examples, based on popular ways it is used in public projects.

github ibm-functions / shell / app / plugins / welcome / about.js View on Github external
const aboutWindow = () => {  /* bringYourOwnWindow impl */
    debug('aboutWindow')

    const path = require('path'),
          root = path.join(__dirname, '..', '..'),
          settings = require(path.join(root, 'build', './config.json'))

    const foo = require('about-window').default({
        product_name: settings.productName,
        icon_path: path.join(root, settings.largeIcon),
        package_json_dir: path.join(root, 'build'),
        use_inner_html: true,
        css_path: [path.join(__dirname, '../../content/css/themes/', settings.cssTheme),
                   path.join(__dirname, 'about.css')],
        win_options: { width: 600, height: 600 }
    })

    // remove the click handler from the title element
    foo.webContents.on('did-finish-load', () => {
        foo.webContents.executeJavaScript("const t = document.querySelector('.title'), c=t.cloneNode(false); while (t.hasChildNodes()) c.appendChild(t.firstChild); t.parentNode.replaceChild(c, t);")
    })
}
github AGProjects / sylk-webrtc / app / index.js View on Github external
        { label: 'About', click: () => { openAboutWindow(Object.assign({}, aboutOptions)); }},
        { label: 'Quit', accelerator: 'Command+Q', click: () => { app.quit(); }}

about-window

'About App' window for Electron application

MIT
Latest version published 11 months ago

Package Health Score

68 / 100
Full package analysis

Similar packages