mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
Desktop, Cli: Regression: Fix export of pluginAssets when exporting to html/pdf (#3927)
This commit is contained in:
parent
f5d4bedc07
commit
fb39899f8e
@ -103,7 +103,7 @@ export default class InteropService_Exporter_Html extends InteropService_Exporte
|
||||
// The source path is a bit hard-coded but shouldn't change.
|
||||
for (let i = 0; i < result.pluginAssets.length; i++) {
|
||||
const asset = result.pluginAssets[i];
|
||||
const filePath = `${dirname(dirname(__dirname))}/gui/note-viewer/pluginAssets/${asset.name}`;
|
||||
const filePath = `${dirname(dirname(dirname(__dirname)))}/gui/note-viewer/pluginAssets/${asset.name}`;
|
||||
const destPath = `${dirname(noteFilePath)}/pluginAssets/${asset.name}`;
|
||||
await shim.fsDriver().mkdir(dirname(destPath));
|
||||
await shim.fsDriver().copy(filePath, destPath);
|
||||
|
Loading…
Reference in New Issue
Block a user