X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fenv.js;h=9b73aead51359d973f06cae75bf90a36e02097f8;hp=dab70d9a572dda54c0f0bccafbb07616ef372ce0;hb=refs%2Ftags%2Fv3.6.1;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba diff --git a/_source/core/env.js b/_source/core/env.js index dab70d9..9b73aea 100644 --- a/_source/core/env.js +++ b/_source/core/env.js @@ -103,7 +103,16 @@ if ( !CKEDITOR.env ) return domain != hostname && domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434) - } + }, + + /** + * Indicates that page is running under an encrypted connection. + * @returns {Boolean} "true" if the page has an encrypted connection. + * @example + * if ( CKEDITOR.env.secure ) + * alert( "I'm in SSL!" ); + */ + secure : location.protocol == 'https:' }; /**