From 76b0a4b2c8d24684f95f52f3540be72a6112ccdc Mon Sep 17 00:00:00 2001 From: alnikitich Date: Mon, 2 Mar 2015 07:50:13 +0300 Subject: [PATCH] fix issue 198 sheet.cssRules in firefox call exception, but css in this time is not loaded. --- src/plugin/css.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/css.js b/src/plugin/css.js index 0ebbd16..5669039 100644 --- a/src/plugin/css.js +++ b/src/plugin/css.js @@ -66,7 +66,7 @@ return !!(sheet.cssRules || sheet.rules).length; } catch (e) { // In case of access error assume that css is loaded - return true; + return false; } } @@ -97,4 +97,4 @@ /*if ($P.WORKER || $P.NODE) {*///#JSCOVERAGE_ENDIF/*}*/ }; -}(sandbox)); \ No newline at end of file +}(sandbox));