Changed ActiveX detection slightly

This commit is contained in:
Wade Alcorn
2013-02-01 07:11:53 +10:00
parent c88a2bb8e3
commit 0df85344f0

View File

@@ -1014,7 +1014,7 @@ beef.browser = {
* Returns boolean value depending on whether the browser support ActiveX
*/
hasActiveX: function() {
return (typeof(window.ActiveXObject) != "undefined");
return !!window.ActiveXObject;
},
/**