From e51a0461a621ed66ede1032d72076cae5b8fdf46 Mon Sep 17 00:00:00 2001
From: Reed Garmsen <rgarmsen2295@gmail.com>
Date: Thu, 2 Jul 2015 17:54:00 -0700
Subject: Implemented IE10 & 11 specific error suppression when a 200 status
 (aka OK) error is thrown

---
 web/react/utils/client.jsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'web/react/utils/client.jsx')

diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 4433df5cf..5e9d395c8 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -280,16 +280,18 @@ module.exports.getMeSynchronous = function(success, error) {
         url: "/api/v1/users/me",
         dataType: 'json',
         contentType: 'application/json',
-        //cache: false,
         type: 'GET',
         success: function(data, textStatus, xhr) {
             current_user = data;
             if (success) success(data, textStatus, xhr);
         },
         error: function(xhr, status, err) {
-            if (/*xhr.status != 200 && */error) {
-                e = handleError("getMeSynchronous", xhr, status, err);
-                error(e);
+            var ieChecker = window.navigator.userAgent;
+            if (xhr.status != 200 || !(ieChecker.indexOf("Trident/7.0") > 0 || ieChecker.indexOf("Trident/6.0") > 0)) {
+                if (error) {
+                    e = handleError("getMeSynchronous", xhr, status, err);
+                    error(e);
+                };
             };
         }
     });
-- 
cgit v1.2.3-1-g7c22

