first bit #2
This commit is contained in:
parent
70e65c69d9
commit
b0b939ce28
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export default class BetterWordCount extends Plugin {
|
|||
this.currentFile.extension === "md" &&
|
||||
!this.recentlyTyped
|
||||
) {
|
||||
const contents = await this.app.vault.read(this.currentFile);
|
||||
const contents = await this.app.vault.cachedRead(this.currentFile);
|
||||
this.updateWordCount(contents);
|
||||
} else if (!this.recentlyTyped) {
|
||||
this.updateWordCount("");
|
||||
|
|
Loading…
Reference in a new issue