Skip to content

Commit 6e49540

Browse files
committed
Fix symlinked plugins not working on desktop
1 parent df1d6b4 commit 6e49540

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ module.exports = class HotReload extends Plugin {
2929
});
3030
}
3131

32-
watch(path) {
32+
async watch(path) {
3333
if (this.app.vault.adapter.watchers.hasOwnProperty(path)) return;
34-
if (this.app.vault.adapter.stat(path).type !== "folder") return;
34+
if ((await this.app.vault.adapter.stat(path)).type !== "folder") return;
3535
if (watchNeeded || this.isSymlink(path)) this.app.vault.adapter.startWatchPath(path, false);
3636
}
3737

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"name": "Hot Reload",
44
"author": "PJ Eby",
55
"authorUrl": "https://github.com/pjeby",
6-
"version": "0.1.12",
7-
"minAppVersion": "0.15.9",
6+
"version": "0.1.13",
7+
"minAppVersion": "1.5.8",
88
"isDesktopOnly": true,
99
"description": "Automatically reload in-development plugins when their files are changed"
1010
}

versions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"0.1.13": "1.5.8",
3+
"0.1.11": "0.15.9"
4+
}

0 commit comments

Comments
 (0)