Skip to content

Commit

Permalink
feat: add buymeacoffee button to settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasDoesThings committed Apr 12, 2024
1 parent adaa395 commit b173738
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,12 @@ class HideFoldersPluginSettingTab extends PluginSettingTab {
.addButton(button => button
.buttonEl.innerHTML = '<a href="https://github.com/JonasDoesThings/obsidian-hide-folders" target="_blank">obsidian-hide-folders</a>'
);

new Setting(containerEl)
.setName("Donate")
.setDesc("If you like this open-source plugin, consider a small tip to support my unpaid work.")
.addButton((button) => button
.buttonEl.outerHTML = "<a href='https://www.buymeacoffee.com/jonasdoesthings' target='_blank'><img src='https://cdn.buymeacoffee.com/buttons/default-orange.png' alt='Buy Me A Coffee' height='27' width='116'></a>"
);
}
}

0 comments on commit b173738

Please sign in to comment.