JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4b
[ckeditor.git] / _source / core / env.js
index 5b39c53..a0ae465 100644 (file)
@@ -75,11 +75,13 @@ if ( !CKEDITOR.env )
 \r
                        isCustomDomain : function()\r
                        {\r
+                               if ( !this.ie )\r
+                                       return false;\r
+\r
                                var domain = document.domain,\r
                                        hostname = window.location.hostname;\r
 \r
-                               return this.ie &&\r
-                                       domain != hostname &&\r
+                               return domain != hostname &&\r
                                        domain != ( '[' + hostname + ']' );     // IPv6 IP support (#5434)\r
                        }\r
                };\r