From 31ef5cf0243c3e52030af50951c7fa7aa066c3fa Mon Sep 17 00:00:00 2001 From: ectasy663 Date: Fri, 10 Jul 2026 16:37:58 +0530 Subject: [PATCH] Fix light theme script injection bug --- public/streak-animation.html | 19 +++++++++++++++++++ scratch/port_streak_clean.py | 3 +-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/public/streak-animation.html b/public/streak-animation.html index 0202938..8487cd3 100644 --- a/public/streak-animation.html +++ b/public/streak-animation.html @@ -394,3 +394,22 @@ capInput.addEventListener('keydown', e=>{ if(e.key==='Enter') play(); }); window.addEventListener('load', ()=>setTimeout(play,180)); + + + \ No newline at end of file diff --git a/scratch/port_streak_clean.py b/scratch/port_streak_clean.py index 230553c..b15fbe3 100644 --- a/scratch/port_streak_clean.py +++ b/scratch/port_streak_clean.py @@ -99,9 +99,8 @@ def port_html(): } })(); - """ - html = html.replace("", light_theme_script) + html += light_theme_script with open(dest_path, 'w', encoding='utf-8') as f: f.write(html)