Fix TS Build Mistakes
This commit is contained in:
parent
ec21413d55
commit
d865d61e23
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ export default class BetterWordCountSettingsTab extends PluginSettingTab {
|
||||||
text.inputEl.type = "number";
|
text.inputEl.type = "number";
|
||||||
text.setPlaceholder("300");
|
text.setPlaceholder("300");
|
||||||
text.setValue(this.plugin.settings.pageWords);
|
text.setValue(this.plugin.settings.pageWords);
|
||||||
text.onChange(async (value: number) => {
|
text.onChange(async (value: string) => {
|
||||||
this.plugin.settings.pageWords = value;
|
this.plugin.settings.pageWords = parseInt(value);
|
||||||
await this.plugin.saveSettings();
|
await this.plugin.saveSettings();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue