Skip to content

Commit e8f0352

Browse files
authored
Adapt to plugin guidelines (#65)
- remove header in settings - remove logging of changed settings value
1 parent 9be2b5d commit e8f0352

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,13 @@ class SampleSettingTab extends PluginSettingTab {
120120

121121
containerEl.empty();
122122

123-
containerEl.createEl('h2', {text: 'Settings for my awesome plugin.'});
124-
125123
new Setting(containerEl)
126124
.setName('Setting #1')
127125
.setDesc('It\'s a secret')
128126
.addText(text => text
129127
.setPlaceholder('Enter your secret')
130128
.setValue(this.plugin.settings.mySetting)
131129
.onChange(async (value) => {
132-
console.log('Secret: ' + value);
133130
this.plugin.settings.mySetting = value;
134131
await this.plugin.saveSettings();
135132
}));

0 commit comments

Comments
 (0)