fix(export/share): asset path in prod

This commit is contained in:
Elian Doran
2025-06-24 18:49:11 +03:00
parent 3a55490bbf
commit 6d446c5b27

View File

@@ -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);