Skip to content

Commit

Permalink
Merge pull request #10 from mnaoumov/issue-8-v2
Browse files Browse the repository at this point in the history
Use unified approach of getting pluginFolder
  • Loading branch information
pjeby authored Jan 10, 2024
2 parents 6cb298f + 1dcba95 commit c836f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = class HotReload extends Plugin {
this.inProgress = null;
await this.getPluginNames();
this.registerEvent( this.app.vault.on("raw", this.requestScan));
this.watch(`${app.vault.configDir}/plugins`);
this.watch(this.app.plugins.getPluginFolder());
this.requestScan();
this.addCommand({
id: "scan-for-changes",
Expand Down

0 comments on commit c836f8b

Please sign in to comment.