Browse Source

Doc: Delete unnecessary require and update flag name

Mateus Silva 6 years ago
parent
commit
1b3cd01851
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/api/web-contents.md

+ 2 - 2
docs/api/web-contents.md

@@ -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})