Merge branch 'hotfix/0.3.1' into develop
This commit is contained in:
commit
f7e4a92788
3 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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