From 134d09c93fb3c0d9bd3794ec065e974feda4c7f2 Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Sun, 7 Jun 2026 10:11:11 -0300 Subject: [PATCH] Fix redeclared const scene breaking entire script Co-Authored-By: Claude Sonnet 4.6 --- plugin/contents/ui/dancer.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }