Procházet zdrojové kódy

uxe cssRules instead of rules

Gildas před 7 roky
rodič
revize
ffb74f6a99
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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("");
 				}
 			});