Merge pull request #6936 from electron/add-missing-require

add missing require to win.loadURL doc
This commit is contained in:
Kevin Sawicki 2016-08-22 15:49:48 -07:00 committed by GitHub
commit 0955c2fd4d

View file

@ -961,7 +961,7 @@ method:
let url = require('url').format({
protocol: 'file',
slashes: true,
pathname: path.join(__dirname, 'index.html')
pathname: require('path').join(__dirname, 'index.html')
})
win.loadURL(url)