fix(server): list of syntax highlighting not working properly

This commit is contained in:
Elian Doran
2025-05-04 00:20:59 +03:00
parent 3b13ba46f1
commit 5090daed95

View File

@@ -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";
}
/**