mirror of
https://github.com/tbergeron/obsidian-human-readable-dates.git
synced 2026-07-22 06:56:05 +00:00
Fix heading wording, event listener promise void return, and manifest description
This commit is contained in:
parent
9be9d79abe
commit
a76962c8e7
2 changed files with 7 additions and 7 deletions
12
main.ts
12
main.ts
|
|
@ -30,11 +30,11 @@ class HumanReadableDateWidget extends WidgetType {
|
|||
|
||||
const linkTarget = this.originalText.replace(/^\[\||\]\]$/g, '');
|
||||
|
||||
link.addEventListener('click', async (event) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
await this.app?.workspace.openLinkText(linkTarget, '', false);
|
||||
});
|
||||
link.addEventListener('click', (event) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
void this.app?.workspace.openLinkText(linkTarget, '', false);
|
||||
});
|
||||
|
||||
return link;
|
||||
} else {
|
||||
|
|
@ -329,7 +329,7 @@ class HumanReadableDatesSettingTab extends PluginSettingTab {
|
|||
containerEl.empty();
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Human Readable Dates Settings')
|
||||
.setName('General')
|
||||
.setHeading();
|
||||
|
||||
new Setting(containerEl)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Human Readable Dates",
|
||||
"version": "1.0.3",
|
||||
"minAppVersion": "0.16.0",
|
||||
"description": "Human readable dates.",
|
||||
"description": "Display dates in a human-readable format like 'Yesterday' or 'Tomorrow'.",
|
||||
"author": "Tommy Bergeron",
|
||||
"authorUrl": "https://github.com/tbergeron",
|
||||
"fundingUrl": "https://www.paypal.com/donate/?hosted_button_id=93Z9BUUD778SG",
|
||||
|
|
|
|||
Loading…
Reference in a new issue