diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-19 17:41:33 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-22 11:27:45 -0700 |
commit | c1afc988cb25f27366d24527fb70e718b42fff76 (patch) | |
tree | da69d033d68ce8356c6c17e3e497d089dce0a15d /web/react/utils | |
parent | 06c5ddcb1d9e4e2e79b33196a58c5d62c0c43e37 (diff) | |
download | chat-c1afc988cb25f27366d24527fb70e718b42fff76.tar.gz chat-c1afc988cb25f27366d24527fb70e718b42fff76.tar.bz2 chat-c1afc988cb25f27366d24527fb70e718b42fff76.zip |
Added cache: false to ajax calls that caused problems with ie10
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/client.jsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 103292abf..c947ff075 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -282,6 +282,7 @@ module.exports.getMeSynchronous = function(success, error) { var currentUser = null; $.ajax({ async: false, + cache: false, url: '/api/v1/users/me', dataType: 'json', contentType: 'application/json', @@ -293,12 +294,9 @@ module.exports.getMeSynchronous = function(success, error) { } }, error: function onError(xhr, status, err) { - var ieChecker = window.navigator.userAgent; // This and the condition below is used to check specifically for browsers IE10 & 11 to suppress a 200 'OK' error from appearing on login - if (xhr.status !== 200 || !(ieChecker.indexOf('Trident/7.0') > 0 || ieChecker.indexOf('Trident/6.0') > 0)) { - if (error) { - var e = handleError('getMeSynchronous', xhr, status, err); - error(e); - } + if (error) { + var e = handleError('getMeSynchronous', xhr, status, err); + error(e); } } }); |