Fix TS Build Mistakes

This commit is contained in:
minermaniac447 2023-02-08 18:25:43 -05:00 committed by GitHub
parent d865d61e23
commit 86ca1199cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ export default class BetterWordCountSettingsTab extends PluginSettingTab {
.addText((text: TextComponent) => { .addText((text: TextComponent) => {
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.toString());
text.onChange(async (value: string) => { text.onChange(async (value: string) => {
this.plugin.settings.pageWords = parseInt(value); this.plugin.settings.pageWords = parseInt(value);
await this.plugin.saveSettings(); await this.plugin.saveSettings();