mirror of
https://github.com/zadam/trilium.git
synced 2026-04-04 19:19:07 +02:00
chore(icon_packs): integrate prefix as part of the attribute instead of manifest
This commit is contained in:
@@ -89,10 +89,10 @@ export function renderNoteForExport(note: BNote, parentBranch: BBranch, basePath
|
||||
faviconUrl: `${basePath}favicon.ico`,
|
||||
ancestors,
|
||||
isStatic: true,
|
||||
iconPackCss: iconPacks.map(p => generateCss(p, `${basePath}assets/icon-pack-${p.manifest.prefix.toLowerCase()}.${MIME_TO_EXTENSION_MAPPINGS[p.fontMime]}`))
|
||||
iconPackCss: iconPacks.map(p => generateCss(p, `${basePath}assets/icon-pack-${p.prefix.toLowerCase()}.${MIME_TO_EXTENSION_MAPPINGS[p.fontMime]}`))
|
||||
.filter(Boolean)
|
||||
.join("\n\n"),
|
||||
iconPackSupportedPrefixes: iconPacks.map(p => p.manifest.prefix)
|
||||
iconPackSupportedPrefixes: iconPacks.map(p => p.prefix)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ export function renderNoteContent(note: SNote) {
|
||||
))
|
||||
.filter(Boolean)
|
||||
.join("\n\n"),
|
||||
iconPackSupportedPrefixes: iconPacks.map(p => p.manifest.prefix)
|
||||
iconPackSupportedPrefixes: iconPacks.map(p => p.prefix)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user