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",
|
"id": "better-word-count",
|
||||||
"name": "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.",
|
"description": "Counts the words of selected text in the editor.",
|
||||||
"author": "Luke Leppan",
|
"author": "Luke Leppan",
|
||||||
"authorUrl": "https://lukeleppan.com",
|
"authorUrl": "https://lukeleppan.com",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "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.",
|
"description": "Counts the words of selected text in the editor.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -38,7 +38,7 @@ export default class BetterWordCount extends Plugin {
|
||||||
this.currentFile.extension === "md" &&
|
this.currentFile.extension === "md" &&
|
||||||
!this.recentlyTyped
|
!this.recentlyTyped
|
||||||
) {
|
) {
|
||||||
const contents = await this.app.vault.read(this.currentFile);
|
const contents = await this.app.vault.cachedRead(this.currentFile);
|
||||||
this.updateWordCount(contents);
|
this.updateWordCount(contents);
|
||||||
} else if (!this.recentlyTyped) {
|
} else if (!this.recentlyTyped) {
|
||||||
this.updateWordCount("");
|
this.updateWordCount("");
|
||||||
|
|
Loading…
Reference in a new issue