]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: Should restart renderer when reloading
authorCheng Zhao <zcbenz@gmail.com>
Sun, 19 Oct 2014 08:27:50 +0000 (16:27 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 19 Oct 2014 08:27:50 +0000 (16:27 +0800)
Fixes #692.

atom/browser/native_window_mac.mm

index 167b3a1c5da2fe2d0efe5e544dc901b6e0edcd55..1475e53f1c1f2efdd360dcf0f32e3df7adffd625 100644 (file)
@@ -135,7 +135,9 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
 }
 
 - (IBAction)reload:(id)sender {
-  shell_->GetWebContents()->GetController().ReloadIgnoringCache(false);
+  content::WebContents* web_contents = shell_->GetWebContents();
+  content::NavigationController::LoadURLParams params(web_contents->GetURL());
+  web_contents->GetController().LoadURLWithParams(params);
 }
 
 - (IBAction)showDevTools:(id)sender {