|
|
@@ -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 };
|
|
|
|
|
|
-})();
|
|
|
+})();
|