From ae7edf1174a13d14a38b250a752b99ff02deae4f Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Wed, 12 Mar 2025 22:59:37 +0100 Subject: [PATCH] Use let instead of var like a normal person --- static/js/song-controls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/song-controls.js b/static/js/song-controls.js index 09e03c1..164d206 100644 --- a/static/js/song-controls.js +++ b/static/js/song-controls.js @@ -2,8 +2,8 @@ const controls = document.querySelector(".controls"); const song = document.querySelector("iframe.song").contentWindow; // Autoscroll -var scroll; -var scrollTimeout = 60; +let scroll; +let scrollTimeout = 60; const minTimeout = 10; const maxTimeout = 120; const scrollIncrement = 20;