Created
January 22, 2017 16:18
-
-
Save yuya-oc/908cbeb3c1779d0d82729a89251e457b to your computer and use it in GitHub Desktop.
Electronのセキュリティ パーミッション制御 ref: http://qiita.com/yuya-oc/items/74faddb78247f7ac2712
This file contains 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
// 作成時点のバージョン: 1.4.15 | |
const {app, BrowserWindow} = require('electron'); | |
let win; | |
app.on('ready', () => { | |
win = new BrowserWindow({ | |
webPreferences: { nodeIntegration: false } | |
}); | |
win.loadURL('https://webrtc.github.io/samples/src/content/getusermedia/gum/'); | |
win.on('close', () => { | |
app.quit(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment