aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/help.ts
blob: 80ac974a123c62b4ea8934b1061e9819db90be1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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";
    }
}