Sha256: db1756b29ec8da4cad3ebc0901550ab86a55ad9b2b17e2edd32a900b1b47d8c2
Contents?: true
Size: 735 Bytes
Versions: 3
Compression:
Stored size: 735 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flammarion-1.0.1 | electron/main.coffee |
flammarion-1.0.0 | electron/main.coffee |
flammarion-0.3.0 | electron/main.coffee |