Browse Source

Update example code (#12315)

path and url needed to be require'd
zhao-lin-li 7 years ago
parent
commit
bb73a0e2cb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docs/tutorial/first-app.md

+ 2 - 0
docs/tutorial/first-app.md

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