From bb73a0e2cb3eac9b8b4632613273ce9786d23d9c Mon Sep 17 00:00:00 2001 From: zhao-lin-li Date: Thu, 15 Mar 2018 12:20:51 -1000 Subject: [PATCH] Update example code (#12315) path and url needed to be require'd --- docs/tutorial/first-app.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorial/first-app.md b/docs/tutorial/first-app.md index 4e44b09a2c0..d11fbb6cf9b 100644 --- a/docs/tutorial/first-app.md +++ b/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.