feat(export/share): export without inner subdirectory

This commit is contained in:
Elian Doran
2025-11-03 15:49:31 +02:00
parent 056c07591e
commit e3e5109270
2 changed files with 5 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
if (!noteMeta?.notePath?.length) {
throw new Error("Missing note path.");
}
const basePath = "../".repeat(noteMeta.notePath.length - 1);
const basePath = "../".repeat(Math.max(0, noteMeta.notePath.length - 2));
let searchContent = "";
if (note) {