feat(export/zip): load script as well

This commit is contained in:
Elian Doran
2025-06-14 01:23:02 +03:00
parent d3115e834a
commit 01beebf660
3 changed files with 20 additions and 5 deletions

View File

@@ -562,6 +562,7 @@ ${markdownContent}`;
const assets = [
"style.css",
"script.js",
"boxicons.css",
"boxicons.eot",
"boxicons.woff2",
@@ -654,6 +655,8 @@ function getShareThemeAssets(nameWithExtension: string) {
// Rename share.css to style.css.
if (nameWithExtension === "style.css") {
nameWithExtension = "share.css";
} else if (nameWithExtension === "script.js") {
nameWithExtension = "share.js";
}
let path: string | undefined;