Sha256: c195d2198d386b326ad709d43533ff263ce361c1e7662745a4bd6f9c07b99e27

Contents?: true

Size: 571 Bytes

Versions: 6

Compression:

Stored size: 571 Bytes

Contents

app = require 'app'
BrowserWindow = require('browser-window')
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
    "node-integration": false
    "web-security":false
    icon:"icon.png"
    preload:preload
  main_window.loadURL(process.argv[2])
  main_window.webContents.on 'new-window', (event, url) ->
    event.preventDefault()
    shell.openExternal(url)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
flammarion-0.1.8pre1 electron/main.coffee
flammarion-0.1.8pre electron/main.coffee
flammarion-0.1.7 electron/main.coffee
flammarion-0.1.7pre2 electron/main.coffee
flammarion-0.1.7pre electron/main.coffee
flammarion-0.1.6 electron/main.coffee