Skip to content

Commit 17f226a

Browse files
committed
Fix notes folder detection condition
1 parent 3c9ef86 commit 17f226a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class InstapaperPlugin extends Plugin {
4747

4848
this.registerEvent(
4949
this.app.workspace.on('file-menu', (menu, file) => {
50-
if (file! instanceof TFolder || file.path != this.settings.notesFolder) {
50+
if (!(file instanceof TFolder && file.path == this.settings.notesFolder)) {
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)