Skip to content

Commit

Permalink
feat: donate button in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Sep 5, 2022
1 parent abb18ae commit 4352657
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,11 @@ export class SettingsTab extends PluginSettingTab {
this.plugin.saveSettings();
}).setValue(this.plugin.settings.idField));

new Setting(containerEl)
.setName('Donate')
.setDesc('If you like this Plugin, consider donating to support continued development.')
.addButton((bt) => {
bt.buttonEl.outerHTML = "<a href='https://ko-fi.com/F1F195IQ5' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>";
});
}
}

0 comments on commit 4352657

Please sign in to comment.