Преглед изворни кода

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("");
 				}
 			});