mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(server): list of syntax highlighting not working properly
This commit is contained in:
parent
3b13ba46f1
commit
5090daed95
@ -47,9 +47,11 @@ export function listSyntaxHighlightingThemes() {
|
|||||||
export function getStylesDirectory() {
|
export function getStylesDirectory() {
|
||||||
if (isElectron && !isDev) {
|
if (isElectron && !isDev) {
|
||||||
return "styles";
|
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";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user