Deprecate the BrowserWindow.restart.
Now BrowserWindow.reload would just do the same thing.
This commit is contained in:
parent
19698fc739
commit
a85db2d780
4 changed files with 8 additions and 8 deletions
|
@ -99,11 +99,14 @@ void WebContents::Stop() {
|
|||
}
|
||||
|
||||
void WebContents::Reload() {
|
||||
web_contents()->GetController().Reload(false);
|
||||
// Navigating to a URL would always restart the renderer process, we want this
|
||||
// because normal reloading will break our node integration.
|
||||
// This is done by AtomBrowserClient::ShouldSwapProcessesForNavigation.
|
||||
LoadURL(GetURL());
|
||||
}
|
||||
|
||||
void WebContents::ReloadIgnoringCache() {
|
||||
web_contents()->GetController().ReloadIgnoringCache(false);
|
||||
Reload();
|
||||
}
|
||||
|
||||
bool WebContents::CanGoBack() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue