Kaynağa Gözat

Fix bug with infobar template evaulation

Aravind SV 5 yıl önce
ebeveyn
işleme
64b183b5f4
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      lib/single-file/single-file-core.js

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

@@ -1404,7 +1404,6 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 			const publisherElement = this.doc.querySelector("meta[name=publisher]");
 			const headingElement = this.doc.querySelector("h1");
 			this.options.title = titleElement ? titleElement.textContent.trim() : "";
-			this.options.infobarContent = await ProcessorHelper.evalTemplate(this.options.infobarTemplate, this.options, null, true);
 			this.options.info = {
 				description: descriptionElement && descriptionElement.content ? descriptionElement.content.trim() : "",
 				lang: this.doc.documentElement.lang,
@@ -1413,6 +1412,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 				publisher: publisherElement && publisherElement.content ? publisherElement.content.trim() : "",
 				heading: headingElement && headingElement.textContent ? headingElement.textContent.trim() : ""
 			};
+			this.options.infobarContent = await ProcessorHelper.evalTemplate(this.options.infobarTemplate, this.options, null, true);
 		}
 	}
 
@@ -2150,4 +2150,4 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 
 	return { getClass };
 
-})();
+})();