diff options
author | Ajay Ramachandran <[email protected]> | 2021-08-20 02:00:15 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-08-20 02:00:15 -0400 |
commit | b3336a218e5b5fd7bb828ad6c2b022670d45638a (patch) | |
tree | ff178527dfdaa1a58b4816365689ba7047fbfe5d /src/help.ts | |
parent | bea943dc962e174e0adb497215d356d91c9b6bc7 (diff) | |
download | SponsorBlock-b3336a218e5b5fd7bb828ad6c2b022670d45638a.tar.gz SponsorBlock-b3336a218e5b5fd7bb828ad6c2b022670d45638a.zip |
Make help page localisable and make up to date
Closes https://github.com/ajayyy/SponsorBlock/issues/509
Diffstat (limited to 'src/help.ts')
-rw-r--r-- | src/help.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/help.ts b/src/help.ts index 97f9c444..80ac974a 100644 --- a/src/help.ts +++ b/src/help.ts @@ -1,8 +1,16 @@ +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"; } |