Sha256: 59050f68ec749f713706eff6b109e9186df31ca77a113df1c399ebbe6c7e9a25
Contents?: true
Size: 713 Bytes
Versions: 6
Compression:
Stored size: 713 Bytes
Contents
app = require('electron').app {BrowserWindow} = require('electron') path = require('path') shell = require('electron').shell app.on 'ready', -> preload = path.resolve(path.join(__dirname, 'preload.js')) main_window = new BrowserWindow width: parseInt(process.argv[3]) || 800 height: parseInt(process.argv[4]) || 600 backgroundColor: '#1d1f21' webPreferences: nodeIntegration: false webSecurity: false preload:preload icon:path.resolve(path.join(__dirname, "icon.png")) preload:preload main_window.loadURL(process.argv[2]) main_window.setMenu(null) main_window.webContents.on 'new-window', (event, url) -> event.preventDefault() shell.openExternal(url)
Version data entries
6 entries across 6 versions & 1 rubygems