From 4a37f6162a1e02dd975fcd29e03de61df4380b66 Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Mon, 14 Feb 2022 19:37:05 +0900 Subject: [PATCH] improves compatibility with inconsistent CSSOM behavior of older browsers (#929) --- packages/core/src/sheet.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/sheet.js b/packages/core/src/sheet.js index 1603b4fe..0834b34b 100644 --- a/packages/core/src/sheet.js +++ b/packages/core/src/sheet.js @@ -21,8 +21,7 @@ const isSheetAccessible = (/** @type {CSSStyleSheet} */ sheet) => { } try { - sheet.cssRules - return true + return !!sheet.cssRules } catch (e) { return false }