X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fcore%2Fenv.js;h=a0ae46509761b114681c20bb95be00c757ae47dc;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hp=2e6a0ff5eddf13d614775278dfb6cde2192bacda;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/env.js b/_source/core/env.js index 2e6a0ff..a0ae465 100644 --- a/_source/core/env.js +++ b/_source/core/env.js @@ -71,9 +71,18 @@ if ( !CKEDITOR.env ) quirks : ( document.compatMode == 'BackCompat' ), + mobile : ( agent.indexOf( 'mobile' ) > -1 ), + isCustomDomain : function() { - return this.ie && document.domain != window.location.hostname; + if ( !this.ie ) + return false; + + var domain = document.domain, + hostname = window.location.hostname; + + return domain != hostname && + domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434) } }; @@ -176,12 +185,13 @@ if ( !CKEDITOR.env ) * alert( "Your browser is pretty cool!" ); */ env.isCompatible = + !env.mobile && ( ( env.ie && version >= 6 ) || ( env.gecko && version >= 10801 ) || ( env.opera && version >= 9.5 ) || ( env.air && version >= 1 ) || ( env.webkit && version >= 522 ) || - false; + false ); // The CSS class to be appended on the main UI containers, making it // easy to apply browser specific styles to it.