Last active
August 1, 2016 01:25
-
-
Save shimarin/256927007f114056012f9037069b9175 to your computer and use it in GitHub Desktop.
electronで任意のURLを開くだけのスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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