Skip to content

Commit

Permalink
style: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 23, 2022
1 parent 08222df commit 6506664
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions mkdocsPublisher/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,17 @@ export class MkdocsSettingsTab extends PluginSettingTab {


new Setting(this.containerEl)
.setName('Default Folder')
.setDesc('Set the default reception folder')
.addText((text) => {
text
.setPlaceholder('docs')
.setValue(this.plugin.settings.folderDefaultName)
.onChange(async (value) => {
this.plugin.settings.folderDefaultName = value.replace(/\/$/, '');
await this.plugin.saveSettings();
});
});
.setName('Default Folder')
.setDesc('Set the default reception folder')
.addText((text) => {
text
.setPlaceholder('docs')
.setValue(this.plugin.settings.folderDefaultName)
.onChange(async (value) => {
this.plugin.settings.folderDefaultName = value.replace(/\/$/, '');
await this.plugin.saveSettings();
});
});

const frontmatterKeySettings = new Setting(this.containerEl)
.setName('Frontmatter key')
Expand All @@ -170,7 +170,7 @@ export class MkdocsSettingsTab extends PluginSettingTab {
.onChange(async(value)=>{
this.plugin.settings.rootFolder =value.replace(/\/$/, '');
await this.plugin.saveSettings();
});
});
});

if (this.plugin.settings.downloadedFolder == 'yamlFrontmatter') {
Expand Down

0 comments on commit 6506664

Please sign in to comment.