Skip to content

Commit

Permalink
Remove donation section from settings and add URL into manifest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jobedom committed Mar 25, 2024
1 parent cec7ccf commit f88521d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
13 changes: 0 additions & 13 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,5 @@ class HemingwayModeSettingTab extends PluginSettingTab {
await this.plugin.updateStatus(true);
})
);

containerEl.createEl("hr");

containerEl.createEl("div", { text: "Enjoying this plugin? Want more features?" });
const button = containerEl.createEl("div");
const a = document.createElement("a");
const img = document.createElement("img");
img.src = "https://storage.ko-fi.com/cdn/kofi2.png?v=3";
img.setAttr("height", 36);
img.addClass("hemingway-mode-kofi-button-image");
a.setAttribute("href", "https://ko-fi.com/jobedom");
a.appendChild(img);
button.appendChild(a);
}
}
6 changes: 4 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"version": "1.0.9",
"minAppVersion": "0.15.0",
"description": "Prevents any editing, only letting you write ahead.",
"author": "[email protected]",
"author": "Joaquín Bernal",
"authorUrl": "https://github.com/jobedom",
"fundingUrl": "https://ko-fi.com/jobedom",
"isDesktopOnly": false
}
}
6 changes: 0 additions & 6 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.view-content.hemingway .cm-editor .cm-content {
pointer-events: none;
}

img.hemingway-mode-kofi-button-image {
margin-top: 15px;
border: 0;
height: 36px;
}

0 comments on commit f88521d

Please sign in to comment.