Merge pull request #275 from jnugh/revertCacheWorkaround

Revert pull #219 "Workaround: Invalidate cache of the main page on load"
This commit is contained in:
Yuya Ochiai
2016-09-13 00:45:52 +09:00
committed by GitHub
2 changed files with 1 additions and 10 deletions

View File

@@ -346,8 +346,7 @@ var MattermostView = React.createClass({
webview.addEventListener('did-fail-load', function(e) {
console.log(thisObj.props.name, 'webview did-fail-load', e);
if (e.errorCode === -3 || // An operation was aborted (due to user action).
e.errorCode === -300) { //The operation was aborted to invalidate application cache
if (e.errorCode === -3) { // An operation was aborted (due to user action).
return;
}
@@ -382,13 +381,6 @@ var MattermostView = React.createClass({
}
});
webview.addEventListener("did-start-loading", function() {
if (!webview.cacheInvalidated) {
webview.reloadIgnoringCache();
webview.cacheInvalidated = true;
}
});
webview.addEventListener("dom-ready", function() {
// webview.openDevTools();