X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2F_bootstrap.js;h=a25905c338eb9a18b559f4e8dab2348720fe1fa3;hp=6c0440dde9ee4319478c9c48d7cc046b909a8125;hb=refs%2Ftags%2Fv3.0.1;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91 diff --git a/_source/core/_bootstrap.js b/_source/core/_bootstrap.js index 6c0440d..a25905c 100644 --- a/_source/core/_bootstrap.js +++ b/_source/core/_bootstrap.js @@ -22,7 +22,16 @@ For licensing, see LICENSE.html or http://ckeditor.com/license hcDetect.appendTo( CKEDITOR.document.getHead() ); // Update CKEDITOR.env. - if ( ( CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ) ) ) + // Catch exception needed sometimes for FF. (#4230) + try + { + CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ); + } + catch (e) + { + CKEDITOR.env.hc = false; + } + if ( CKEDITOR.env.hc ) CKEDITOR.env.cssClass += ' cke_hc'; hcDetect.remove();