Fix bug with citations failing to auto update (Fixes #34, Fixes #98) (#104)

The fix is to resolve the citation export path relative to the vault root before passing the path to chokidar.
This commit is contained in:
Luke Murray
2021-08-20 12:17:35 -04:00
committed by GitHub
parent 151947bd2b
commit 0e32241a30

View File

@@ -115,7 +115,10 @@ export default class CitationPlugin extends Plugin {
};
chokidar
.watch(this.settings.citationExportPath, watchOptions)
.watch(
this.resolveLibraryPath(this.settings.citationExportPath),
watchOptions,
)
.on('change', () => {
this.loadLibrary();
});