Fix bug with applayout background image not loading

This commit is contained in:
DrMint 2024-06-27 22:11:59 +02:00
parent 2cacccae86
commit 6eb64b48a2
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ const uniqueId = getRandomId();
const img = document.getElementById(uniqueId); const img = document.getElementById(uniqueId);
const parent = img.parentElement; const parent = img.parentElement;
if (!parent || !img) return; if (!parent || !img) return;
if (img.complete) return;
parent.style.animationPlayState = "paused"; parent.style.animationPlayState = "paused";
img.addEventListener( img.addEventListener(