Fix error handler which showed an error on reload, as the cancel event was triggered after the cacheInvalidated property has been set to true
This commit is contained in:
parent
61bf5344bf
commit
93263aea3a
|
@ -313,7 +313,7 @@ var MattermostView = React.createClass({
|
||||||
webview.addEventListener('did-fail-load', function(e) {
|
webview.addEventListener('did-fail-load', function(e) {
|
||||||
console.log(thisObj.props.name, 'webview did-fail-load', e);
|
console.log(thisObj.props.name, 'webview did-fail-load', e);
|
||||||
if (e.errorCode === -3 || // An operation was aborted (due to user action).
|
if (e.errorCode === -3 || // An operation was aborted (due to user action).
|
||||||
webview.cacheInvalidated) { //The operation was aborted to invalidate application cache
|
e.errorCode === -300) { //The operation was aborted to invalidate application cache
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue