Skip to content

Commit

Permalink
Improved mobile platform handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Dec 28, 2024
1 parent c1a9313 commit 81a9292
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ module.exports = class HotReload extends Plugin {

isSymlink = (() => {
try {
const fs = require('fs');
const {lstatSync} = require('fs');
return path => {
const realPath = [this.app.vault.adapter.basePath, path].join("/");
const lstat = fs.lstatSync(realPath, {throwIfNoEntry: false});
const lstat = lstatSync(realPath, {throwIfNoEntry: false});
return lstat && lstat.isSymbolicLink();
}
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Hot Reload",
"author": "PJ Eby",
"authorUrl": "https://github.com/pjeby",
"version": "0.1.14",
"version": "0.1.15",
"minAppVersion": "1.5.8",
"isDesktopOnly": true,
"description": "Automatically reload in-development plugins when their files are changed"
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"0.1.14": "1.5.8",
"0.1.15": "1.5.8",
"0.1.13": "1.5.8",
"0.1.11": "0.15.9"
}

0 comments on commit 81a9292

Please sign in to comment.