mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-21 02:38:28 -05:00
fix(server): list of syntax highlighting not working properly
This commit is contained in:
@@ -47,9 +47,11 @@ export function listSyntaxHighlightingThemes() {
|
||||
export function getStylesDirectory() {
|
||||
if (isElectron && !isDev) {
|
||||
return "styles";
|
||||
} else if (!isDev) {
|
||||
return "node_modules/@highlightjs/cdn-assets/styles";
|
||||
} else {
|
||||
return "../node_modules/@highlightjs/cdn-assets/styles";
|
||||
}
|
||||
|
||||
return "node_modules/@highlightjs/cdn-assets/styles";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user