diff options
| author | fyears <[email protected]> | 2021-10-10 17:13:28 +0800 |
|---|---|---|
| committer | Lishid <[email protected]> | 2021-10-10 11:11:02 -0400 |
| commit | 5f95bce9e1ccfc207addfccd525d6dd93035f20b (patch) | |
| tree | b88493394e732697a83dfe8e539077e42205662b /main.ts | |
| parent | c228a7022301e4a74614a67570d38ed2e2e05a71 (diff) | |
| download | ai-pulse-obsidian-plugin-5f95bce9e1ccfc207addfccd525d6dd93035f20b.tar.gz ai-pulse-obsidian-plugin-5f95bce9e1ccfc207addfccd525d6dd93035f20b.zip | |
preserve and load settings correctly
Diffstat (limited to 'main.ts')
| -rw-r--r-- | main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ class SampleSettingTab extends PluginSettingTab { .setDesc('It\'s a secret')
.addText(text => text
.setPlaceholder('Enter your secret')
- .setValue('')
+ .setValue(this.plugin.settings.mySetting)
.onChange(async (value) => {
console.log('Secret: ' + value);
this.plugin.settings.mySetting = value;
|
