Update example code (#12315)

path and url needed to be require'd
This commit is contained in:
zhao-lin-li 2018-03-15 12:20:51 -10:00 committed by Charles Kerr
parent 243ab45111
commit bb73a0e2cb

View file

@ -106,6 +106,8 @@ for the application to be ready and open a window:
```javascript ```javascript
const {app, BrowserWindow} = require('electron') const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
function createWindow () { function createWindow () {
// Create the browser window. // Create the browser window.