Quellcode durchsuchen

set template to empty string by default

Gildas vor 7 Jahren
Ursprung
Commit
9d9992351f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -1049,7 +1049,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 	const SINGLE_FILE_VARIABLE_NAME_PREFIX = "--sf-img-";
 
 	class ProcessorHelper {
-		static async evalTemplate(template, options, content, dontReplaceSlash) {
+		static async evalTemplate(template = "", options, content, dontReplaceSlash) {
 			const date = new Date();
 			const url = docUtil.parseURL(options.url);
 			template = await Util.evalTemplateVariable(template, "page-title", () => options.title || "No title", dontReplaceSlash);