*Change crypto loader to use DOMContentLoaded to ensure document.head exists

This commit is contained in:
Derrick Hammer 2022-08-22 03:22:03 -04:00
parent d79086ad00
commit c7589158d2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
(async function () { document.addEventListener("DOMContentLoaded", async function () {
if (!window.crypto.subtle) { if (!window.crypto.subtle) {
let el = document.createElement("script"); let el = document.createElement("script");
// @ts-ignore // @ts-ignore
@ -10,4 +10,4 @@
}; };
document.head.appendChild(el); document.head.appendChild(el);
} }
})(); });