Move navigator related APIs to webContents.
This commit is contained in:
parent
e70d195cde
commit
c8a82e6e50
5 changed files with 67 additions and 74 deletions
|
@ -88,7 +88,10 @@ BrowserWindow.fromDevTools = (processId, routingId) ->
|
|||
devtools.routingId == routingId
|
||||
|
||||
# Be compatible with old API.
|
||||
BrowserWindow::loadUrl = (url) -> @webContents.loadUrl(url)
|
||||
BrowserWindow::getUrl = -> @webContents.getUrl()
|
||||
BrowserWindow::reload = -> @webContents.reload()
|
||||
BrowserWindow::reloadIgnoringCache = -> @webContents.reloadIgnoringCache()
|
||||
BrowserWindow::getPageTitle = -> @webContents.getTitle()
|
||||
BrowserWindow::isLoading = -> @webContents.isLoading()
|
||||
BrowserWindow::isWaitingForResponse = -> @webContents.isWaitingForResponse()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue