Merge branch 'hotfix/0.3.1' into develop

This commit is contained in:
lukeleppan 2020-11-11 11:35:24 +02:00
commit f7e4a92788
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"id": "better-word-count",
"name": "Better Word Count",
"version": "0.3.0",
"version": "0.3.1",
"description": "Counts the words of selected text in the editor.",
"author": "Luke Leppan",
"authorUrl": "https://lukeleppan.com",

View file

@ -1,6 +1,6 @@
{
"name": "better-word-count",
"version": "0.3.0",
"version": "0.3.1",
"description": "Counts the words of selected text in the editor.",
"main": "main.js",
"scripts": {

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