fix(export/share): asset path for styles and scripts

This commit is contained in:
Elian Doran 2025-10-26 11:07:08 +02:00
parent 212956201a
commit f4468706ef
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View File

@ -19,8 +19,6 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
prepareMeta(metaFile: NoteMetaFile): void {
const assets = [
"style.css",
"script.js",
"boxicons.css",
"boxicons.eot",
"boxicons.woff2",

View File

@ -70,11 +70,10 @@ export function renderNoteForExport(note: BNote, parentBranch: BBranch, basePath
subRoot,
rootNoteId: parentBranch.noteId,
cssToLoad: [
`${basePath}style.css`,
`${basePath}boxicons.css`
`${basePath}assets/styles.css`,
],
jsToLoad: [
`${basePath}script.js`
`${basePath}assets/scripts.js`
],
logoUrl: `${basePath}icon-color.svg`,
ancestors