We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09b8e78 commit 53773fcCopy full SHA for 53773fc
1 file changed
main.js
@@ -13,7 +13,9 @@ module.exports = class HotReload extends Plugin {
13
}
14
15
watch(path) {
16
- if (watchNeeded) this.app.vault.adapter.startWatchPath(path, false);
+ if (!watchNeeded) return;
17
+ if (this.app.vault.adapter.watchers.hasOwnProperty(path)) return;
18
+ return this.app.vault.adapter.startWatchPath(path, false);
19
20
21
async getPluginNames() {
0 commit comments