Browse Source

renamed function

Gildas 7 years ago
parent
commit
4c449c5c0e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/single-file/single-file-core.js

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

@@ -1220,14 +1220,14 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 					} else if (ruleData.type == "Atrule" && (ruleData.name == "media" || ruleData.name == "supports")) {
 						promises.push(this.processStylesheet(ruleData.block.children.toArray(), baseURI, options, cssVariables, batchRequest));
 					} else if (ruleData.type == "Atrule" && ruleData.name == "font-face") {
-						promises.push(processDeclaration(ruleData));
+						promises.push(processFontFaceRule(ruleData));
 					}
 				}
 			}
 			removedRules.forEach(cssRule => cssRules.remove(cssRule));
 			await Promise.all(promises);
 
-			async function processDeclaration(cssRule) {
+			async function processFontFaceRule(cssRule) {
 				await Promise.all(cssRule.block.children.toArray().map(async declaration => {
 					if (declaration.type == "Declaration") {
 						const urlFunctions = DomUtil.getUrlFunctions(DomUtil.getCSSValue(declaration.value));