mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
fix(nx/server): access to highlight.js styles
This commit is contained in:
@@ -291,6 +291,10 @@ export function envToBoolean(val: string | undefined) {
|
||||
*/
|
||||
export function getResourceDir() {
|
||||
if (isElectron && !isDev) return process.resourcesPath;
|
||||
if (!isDev) {
|
||||
return path.dirname(process.argv[1]);
|
||||
}
|
||||
|
||||
return join(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user