add missing require to win.loadURL doc
This commit is contained in:
parent
e84d0ebb7e
commit
84fc1d022f
1 changed files with 1 additions and 1 deletions
|
@ -961,7 +961,7 @@ method:
|
||||||
let url = require('url').format({
|
let url = require('url').format({
|
||||||
protocol: 'file',
|
protocol: 'file',
|
||||||
slashes: true,
|
slashes: true,
|
||||||
pathname: path.join(__dirname, 'index.html')
|
pathname: require('path').join(__dirname, 'index.html')
|
||||||
})
|
})
|
||||||
|
|
||||||
win.loadURL(url)
|
win.loadURL(url)
|
||||||
|
|
Loading…
Reference in a new issue