Merge branch 'hotfix/0.3.2'

This commit is contained in:
lukeleppan 2020-11-11 11:48:28 +02:00
commit 1bf9c271a4
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{ {
"id": "better-word-count", "id": "better-word-count",
"name": "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.", "description": "Counts the words of selected text in the editor.",
"author": "Luke Leppan", "author": "Luke Leppan",
"authorUrl": "https://lukeleppan.com", "authorUrl": "https://lukeleppan.com",

View file

@ -50,7 +50,7 @@ export default class BetterWordCount extends Plugin {
let files: TFile[] = this.app.vault.getMarkdownFiles(); let files: TFile[] = this.app.vault.getMarkdownFiles();
files.forEach((file) => { files.forEach((file) => {
if ((file.basename = activeLeaf.getDisplayText())) { if (file.basename === activeLeaf.getDisplayText()) {
this.onFileOpen(file); this.onFileOpen(file);
} }
}); });