Fix redeclared const scene breaking entire script

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ltadeu6 2026-06-07 10:11:11 -03:00
parent ad81c6fb69
commit 134d09c93f
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D

View file

@ -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);
}