webContents: workaround reloadIgnoringcache without breaking node integration
This commit is contained in:
parent
fb00c28026
commit
a3f630e55c
1 changed files with 3 additions and 0 deletions
|
@ -387,6 +387,9 @@ void WebContents::Reload(const mate::Dictionary& options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::ReloadIgnoringCache(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);
|
Reload(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue