diff --git a/plugin/contents/ui/dancer.html b/plugin/contents/ui/dancer.html index 022bb1d..52788ea 100644 --- a/plugin/contents/ui/dancer.html +++ b/plugin/contents/ui/dancer.html @@ -945,8 +945,6 @@ for (let i = 0; i < SPEC_COUNT; i++) { /* ============================================================ METEORS ============================================================ */ -const scene = document.querySelector('.scene'); - function spawnMeteor() { const el = document.createElement('div'); el.className = 'meteor'; @@ -964,7 +962,7 @@ function spawnMeteor() { animation-name:meteorFall; translate:0 ${(window.innerHeight + len) * 1.3}px; `; - scene.appendChild(el); + document.querySelector('.scene').appendChild(el); setTimeout(() => el.remove(), dur * 1000); }