File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 1+ {
2+ "0.1.13" : " 1.5.8" ,
3+ "0.1.11" : " 0.15.9"
4+ }
You can’t perform that action at this time.
0 commit comments