fix Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

This commit is contained in:
Vitaly Turovsky 2024-08-05 19:05:24 +03:00
commit c680c6a7d1

View file

@ -41,7 +41,7 @@
// move loading div to the end of body
const loadingDivElem = document.querySelector('.initial-loader');
const newContainer = document.body; // replace with your new container
newContainer.appendChild(loadingDivElem);
if (loadingDivElem) newContainer.appendChild(loadingDivElem);
})
</script>
<script type="module" async>