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