Skip to content

Instantly share code, notes, and snippets.

@shimarin
Last active August 1, 2016 01:25
Show Gist options
  • Select an option

  • Save shimarin/256927007f114056012f9037069b9175 to your computer and use it in GitHub Desktop.

Select an option

Save shimarin/256927007f114056012f9037069b9175 to your computer and use it in GitHub Desktop.
electronで任意のURLを開くだけのスクリプト
#!/usr/bin/electron
const electron = require('electron');
const app = electron.app;
var mainWindow = null;
// Quit when all windows are closed.
app.on('window-all-closed', function() {
app.quit();
});
app.on('ready', function() {
mainWindow = new electron.BrowserWindow({
width: 800,
height: 600,
autoHideMenuBar: true,
useContentSize: true,
'node-integration': false, // http://qiita.com/pirosikick/items/72d11a8578c5c3327069
});
mainWindow.loadURL("https://github.com");
mainWindow.focus();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment