diff --git a/src/services/wiki/index.ts b/src/services/wiki/index.ts index abf3b5e4..ed04c6c9 100644 --- a/src/services/wiki/index.ts +++ b/src/services/wiki/index.ts @@ -483,8 +483,9 @@ export class Wiki implements IWikiService { const { wikiFolderLocation, port, isSubWiki, mainWikiToLink, id } = workspace; // remove $:/StoryList, otherwise it sometimes cause $__StoryList_1.tid to be generated + // and it will leak private sub-wiki's opened tiddler title try { - await fs.unlink(path.resolve(wikiFolderLocation, 'tiddlers', '$__StoryList')); + void fs.unlink(path.resolve(wikiFolderLocation, 'tiddlers', '$__StoryList')).catch(() => {}); } catch { // do nothing }