From c680c6a7d12fed7ca10ad55ae896c138407f8349 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Mon, 5 Aug 2024 19:05:24 +0300 Subject: [PATCH] fix Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 26a2ef96..8182f783 100644 --- a/index.html +++ b/index.html @@ -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); })