single-file-core 1.5.24 → 1.5.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16902,7 +16902,7 @@ async function formatFilename(content, doc, options) {
|
|
|
16902
16902
|
async function evalTemplate(template = "", options, content, doc, context = {}) {
|
|
16903
16903
|
const { dontReplaceSlash } = context;
|
|
16904
16904
|
context.currentDate = new Date();
|
|
16905
|
-
const url = new URL(options.saveUrl);
|
|
16905
|
+
const url = new URL(options.saveUrl || options.url);
|
|
16906
16906
|
const urlHref = decode(url.href);
|
|
16907
16907
|
const params = Array.from(new URLSearchParams(url.search));
|
|
16908
16908
|
const bookmarkFolder = (options.bookmarkFolders && options.bookmarkFolders.join("/")) || "";
|