From ab652b738c6ae65e10fc549803ecff79b195120e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 19 Oct 2014 16:27:50 +0800 Subject: [PATCH] mac: Should restart renderer when reloading Fixes #692. --- atom/browser/native_window_mac.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 167b3a1c5da2..1475e53f1c1f 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -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 {