Doc: Delete unnecessary require and update flag name

This commit is contained in:
Mateus Silva 2018-06-12 20:07:37 +01:00
Родитель 370d790776
Коммит 1b3cd01851
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -568,10 +568,10 @@ first available device will be selected. `callback` should be called with
cancel the request.
```javascript
const {app, webContents, BrowserWindow} = require('electron')
const {app, BrowserWindow} = require('electron')
let win = null
app.commandLine.appendSwitch('enable-web-bluetooth')
app.commandLine.appendSwitch('enable-experimental-web-platform-features')
app.on('ready', () => {
win = new BrowserWindow({width: 800, height: 600})