*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) {
|
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);
|
||||||
}
|
}
|
||||||
})();
|
});
|
||||||
|
|
Reference in New Issue