Sha256: 2c6f0be061639c5809200d3b83fe6c5178c6ff40c846946262647a481931f79d
Contents?: true
Size: 990 Bytes
Versions: 3
Compression:
Stored size: 990 Bytes
Contents
// Generated by CoffeeScript 1.12.7 (function() { var BrowserWindow, app, path, shell; app = require('electron').app; BrowserWindow = require('electron').BrowserWindow; path = require('path'); shell = require('electron').shell; app.on('ready', function() { var main_window, preload; 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); return main_window.webContents.on('new-window', function(event, url) { event.preventDefault(); return shell.openExternal(url); }); }); }).call(this);
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flammarion-1.0.1 | electron/main.js |
flammarion-1.0.0 | electron/main.js |
flammarion-0.3.0 | electron/main.js |