Deprecate the BrowserWindow.restart.

Now BrowserWindow.reload would just do the same thing.
This commit is contained in:
Cheng Zhao 2014-04-29 15:35:12 +08:00
parent 19698fc739
commit a85db2d780
4 changed files with 8 additions and 8 deletions

View file

@ -81,7 +81,7 @@ BrowserWindow::loadUrl = -> @webContents.loadUrl.apply @webContents, arguments
BrowserWindow::send = -> @webContents.send.apply @webContents, arguments
# Be compatible with old API.
BrowserWindow::restart = -> @webContents.restart()
BrowserWindow::restart = -> @webContents.reload()
BrowserWindow::getUrl = -> @webContents.getUrl()
BrowserWindow::reload = -> @webContents.reload()
BrowserWindow::reloadIgnoringCache = -> @webContents.reloadIgnoringCache()