mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
Merge pull request #1382 from deepak1556/webcontents_patch
webContents: workaround reloadIgnoringcache without breaking node integration
This commit is contained in:
@@ -398,6 +398,9 @@ void WebContents::Reload(const mate::Dictionary& options) {
|
||||
}
|
||||
|
||||
void WebContents::ReloadIgnoringCache(const mate::Dictionary& options) {
|
||||
// Hack to remove pending entries that ignores cache and treated as a fresh
|
||||
// load.
|
||||
web_contents()->GetController().ReloadIgnoringCache(false);
|
||||
Reload(options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user