Skip to content

Commit f446870

Browse files
committed
fix(export/share): asset path for styles and scripts
1 parent 2129562 commit f446870

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/server/src/services/export/zip/share_theme.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
1919
prepareMeta(metaFile: NoteMetaFile): void {
2020

2121
const assets = [
22-
"style.css",
23-
"script.js",
2422
"boxicons.css",
2523
"boxicons.eot",
2624
"boxicons.woff2",

apps/server/src/share/content_renderer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ export function renderNoteForExport(note: BNote, parentBranch: BBranch, basePath
7070
subRoot,
7171
rootNoteId: parentBranch.noteId,
7272
cssToLoad: [
73-
`${basePath}style.css`,
74-
`${basePath}boxicons.css`
73+
`${basePath}assets/styles.css`,
7574
],
7675
jsToLoad: [
77-
`${basePath}script.js`
76+
`${basePath}assets/scripts.js`
7877
],
7978
logoUrl: `${basePath}icon-color.svg`,
8079
ancestors

0 commit comments

Comments
 (0)