Add window.loadFile and webContents.loadFile helper methods
This commit is contained in:
parent
249bd41e11
commit
1553b54779
4 changed files with 46 additions and 0 deletions
|
@ -169,6 +169,9 @@ Object.assign(BrowserWindow.prototype, {
|
|||
getURL (...args) {
|
||||
return this.webContents.getURL()
|
||||
},
|
||||
loadFile (filePath) {
|
||||
return this.webContents.loadFile(filePath)
|
||||
},
|
||||
reload (...args) {
|
||||
return this.webContents.reload(...args)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue