]> littlesong.place Git - littlesongplace.git/commitdiff
Slow down polling for new activity to reduce log clutter
authorChris Fulljames <christianfulljames@gmail.com>
Sun, 20 Jul 2025 15:07:47 +0000 (11:07 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Sun, 20 Jul 2025 15:07:47 +0000 (11:07 -0400)
src/littlesongplace/static/nav.js

index 53ea65550d547cfb4a588514886356b92b36a075..67887b9b4982c7856f606223f72dcaa79c7eda55 100644 (file)
@@ -196,8 +196,8 @@ async function checkForNewActivity() {
     indicator.hidden = !json.new_activity;
 }
 
-// Check for new activity every 10s
-setInterval(checkForNewActivity, 10000);
+// Check for new activity every 5 minutes (in ms)
+setInterval(checkForNewActivity, 5 * 60 * 1000);
 
 function customImage(source, target) {
     // Customize an image by performing a palette swap on the .gif