From 93263aea3a4160b7b0954f5e17e74dce5ba4b42d Mon Sep 17 00:00:00 2001 From: Jonas Schwabe Date: Fri, 22 Jul 2016 08:32:51 +0200 Subject: [PATCH] Fix error handler which showed an error on reload, as the cancel event was triggered after the cacheInvalidated property has been set to true --- src/browser/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/index.jsx b/src/browser/index.jsx index dac3434a..07f701dc 100644 --- a/src/browser/index.jsx +++ b/src/browser/index.jsx @@ -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; }