From: Cheng Zhao Date: Sun, 19 Oct 2014 08:27:50 +0000 (+0800) Subject: mac: Should restart renderer when reloading X-Git-Tag: v0.18.2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ab652b738c6ae65e10fc549803ecff79b195120e;p=electron.git mac: Should restart renderer when reloading Fixes #692. --- diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 167b3a1c..1475e53f 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 {