*Change crypto loader to use DOMContentLoaded to ensure document.head exists
This commit is contained in:
parent
d79086ad00
commit
c7589158d2
|
@ -1,4 +1,4 @@
|
|||
(async function () {
|
||||
document.addEventListener("DOMContentLoaded", async function () {
|
||||
if (!window.crypto.subtle) {
|
||||
let el = document.createElement("script");
|
||||
// @ts-ignore
|
||||
|
@ -10,4 +10,4 @@
|
|||
};
|
||||
document.head.appendChild(el);
|
||||
}
|
||||
})();
|
||||
});
|
||||
|
|
Reference in New Issue