Skip to content

Commit

Permalink
Adapt to plugin guidelines (#65)
Browse files Browse the repository at this point in the history
- remove header in settings
- remove logging of changed settings value
  • Loading branch information
joethei authored Jul 17, 2023
1 parent 9be2b5d commit e8f0352
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,13 @@ class SampleSettingTab extends PluginSettingTab {

containerEl.empty();

containerEl.createEl('h2', {text: 'Settings for my awesome plugin.'});

new Setting(containerEl)
.setName('Setting #1')
.setDesc('It\'s a secret')
.addText(text => text
.setPlaceholder('Enter your secret')
.setValue(this.plugin.settings.mySetting)
.onChange(async (value) => {
console.log('Secret: ' + value);
this.plugin.settings.mySetting = value;
await this.plugin.saveSettings();
}));
Expand Down

0 comments on commit e8f0352

Please sign in to comment.