Explorar o código

use options in this object

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
64c0fcf888
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -729,7 +729,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 							stylesheetContent = await DomProcessorHelper.resolveImportURLs(element.textContent, this.baseURI, options);
 						}
 						const stylesheet = cssTree.parse(stylesheetContent);
-						if (options.compressCSS) {
+						if (this.options.compressCSS) {
 							const removedRules = [];
 							for (let cssRule = stylesheet.children.head; cssRule; cssRule = cssRule.next) {
 								if (cssRule.data.type == "Raw" && cssRule.data.value && cssRule.data.value.trim().startsWith("//")) {