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:
@@ -313,7 +313,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).
|
||||
webview.cacheInvalidated) { //The operation was aborted to invalidate application cache
|
||||
e.errorCode === -300) { //The operation was aborted to invalidate application cache
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user