fix Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
This commit is contained in:
parent
34e02cfc1b
commit
c680c6a7d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue