mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 13:09:01 +01:00
fix(export/share): asset path in prod
This commit is contained in:
parent
3a55490bbf
commit
6d446c5b27
@ -105,10 +105,8 @@ function getShareThemeAssets(nameWithExtension: string) {
|
||||
path = join(RESOURCE_DIR, "images", nameWithExtension);
|
||||
} else if (isDev) {
|
||||
path = join(getResourceDir(), "..", "..", "client", "dist", "src", nameWithExtension);
|
||||
}
|
||||
|
||||
if (!path) {
|
||||
throw new Error("Not yet defined.");
|
||||
} else {
|
||||
path = join(getResourceDir(), "public", "src", nameWithExtension);
|
||||
}
|
||||
|
||||
return fs.readFileSync(path);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user