mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix(export/share): asset path for styles and scripts
This commit is contained in:
		@@ -19,8 +19,6 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
 | 
				
			|||||||
    prepareMeta(metaFile: NoteMetaFile): void {
 | 
					    prepareMeta(metaFile: NoteMetaFile): void {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const assets = [
 | 
					        const assets = [
 | 
				
			||||||
            "style.css",
 | 
					 | 
				
			||||||
            "script.js",
 | 
					 | 
				
			||||||
            "boxicons.css",
 | 
					            "boxicons.css",
 | 
				
			||||||
            "boxicons.eot",
 | 
					            "boxicons.eot",
 | 
				
			||||||
            "boxicons.woff2",
 | 
					            "boxicons.woff2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -70,11 +70,10 @@ export function renderNoteForExport(note: BNote, parentBranch: BBranch, basePath
 | 
				
			|||||||
        subRoot,
 | 
					        subRoot,
 | 
				
			||||||
        rootNoteId: parentBranch.noteId,
 | 
					        rootNoteId: parentBranch.noteId,
 | 
				
			||||||
        cssToLoad: [
 | 
					        cssToLoad: [
 | 
				
			||||||
            `${basePath}style.css`,
 | 
					            `${basePath}assets/styles.css`,
 | 
				
			||||||
            `${basePath}boxicons.css`
 | 
					 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        jsToLoad: [
 | 
					        jsToLoad: [
 | 
				
			||||||
            `${basePath}script.js`
 | 
					            `${basePath}assets/scripts.js`
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        logoUrl: `${basePath}icon-color.svg`,
 | 
					        logoUrl: `${basePath}icon-color.svg`,
 | 
				
			||||||
        ancestors
 | 
					        ancestors
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user