Sha256: 9c1b4777102e2c47f546cf4a8b673b4464440352dad46c96525a42f300de5042
Contents?: true
Size: 990 Bytes
Versions: 6
Compression:
Stored size: 990 Bytes
Contents
// Generated by CoffeeScript 1.10.0 (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
6 entries across 6 versions & 1 rubygems