This commit is contained in:
lukeleppan 2020-11-11 11:32:20 +02:00
parent 70e65c69d9
commit b0b939ce28

View file

@ -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("");