diff --git a/manifest.json b/manifest.json index 80d35fd..93b30dc 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "better-word-count", "name": "Better Word Count", - "version": "0.3.1", + "version": "0.3.2", "description": "Counts the words of selected text in the editor.", "author": "Luke Leppan", "authorUrl": "https://lukeleppan.com", diff --git a/src/main.ts b/src/main.ts index 0ae79ac..2d17577 100644 --- a/src/main.ts +++ b/src/main.ts @@ -50,7 +50,7 @@ export default class BetterWordCount extends Plugin { let files: TFile[] = this.app.vault.getMarkdownFiles(); files.forEach((file) => { - if ((file.basename = activeLeaf.getDisplayText())) { + if (file.basename === activeLeaf.getDisplayText()) { this.onFileOpen(file); } });