Skip to content

Instantly share code, notes, and snippets.

@yuya-oc
Created January 22, 2017 16:18
Show Gist options
  • Save yuya-oc/908cbeb3c1779d0d82729a89251e457b to your computer and use it in GitHub Desktop.
Save yuya-oc/908cbeb3c1779d0d82729a89251e457b to your computer and use it in GitHub Desktop.
Electronのセキュリティ パーミッション制御 ref: http://qiita.com/yuya-oc/items/74faddb78247f7ac2712
// 作成時点のバージョン: 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