diff options
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/common.js b/program/js/common.js index 72a68bb8b..977eb9057 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -93,7 +93,7 @@ function roundcube_browser() this.xmlhttp_test = function() { var activeX_test = new Function("try{var o=new ActiveXObject('Microsoft.XMLHTTP');return true;}catch(err){return false;}"); - this.xmlhttp = (window.XMLHttpRequest || (window.ActiveXObject && activeX_test())); + this.xmlhttp = window.XMLHttpRequest || (('ActiveXObject' in window) && activeX_test()); return this.xmlhttp; }; |