diff --git a/codebird.js b/codebird.js
index <HASH>..<HASH> 100644
--- a/codebird.js
+++ b/codebird.js
@@ -1219,7 +1219,7 @@ var Codebird = function () {
         var xml = null;
         if (typeof window === "object"
             && window
-            && typeof window.XMLHttpRequest === "function"
+            && typeof window.XMLHttpRequest !== "undefined"
         ) {
             xml = new window.XMLHttpRequest();
         } else if (typeof require === "function"
Change window.XMLHttpRequest typeof check to look for not-undefined, instead of function. Now detects XHR on Safari properly.