mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-16 06:11:43 -08:00
feat: speedup by not await fs unlink $__StoryList
This commit is contained in:
parent
94f195f79b
commit
d3287ca014
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue