Skip to content

Commit

Permalink
Fix notes folder detection condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise committed Nov 6, 2024
1 parent 3c9ef86 commit 17f226a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class InstapaperPlugin extends Plugin {

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

Expand Down

0 comments on commit 17f226a

Please sign in to comment.