Преглед на файлове

use options in this object

Gildas преди 7 години
родител
ревизия
64c0fcf888
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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("//")) {