소스 검색

uxe cssRules instead of rules

Gildas 7 년 전
부모
커밋
ffb74f6a99
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -293,7 +293,7 @@ const SingleFileCore = (() => {
 			doc.querySelectorAll("style").forEach(style => {
 				const cssRules = [];
 				if (style.sheet) {
-					processRules(style.sheet.rules, cssRules);
+					processRules(style.sheet.cssRules, cssRules);
 					style.innerText = cssRules.join("");
 				}
 			});