aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/help.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/help.ts')
-rw-r--r--src/help.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/help.ts b/src/help.ts
new file mode 100644
index 00000000..80ac974a
--- /dev/null
+++ b/src/help.ts
@@ -0,0 +1,17 @@
+import Config from "./config";
+import { showDonationLink } from "./utils/configUtils";
+
+import Utils from "./utils";
+const utils = new Utils();
+
+window.addEventListener('DOMContentLoaded', init);
+
+async function init() {
+ utils.localizeHtmlPage();
+
+ await utils.wait(() => Config.config !== null);
+
+ if (!showDonationLink()) {
+ document.getElementById("sbDonate").style.display = "none";
+ }
+} \ No newline at end of file