From 5cf343cb691ba43345d9fb9dc10e655dc4f3b8c5 Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Thu, 18 Apr 2024 02:56:32 +0300 Subject: [PATCH] feat(autoreload): change interval from 5 seconds to 1 second --- www/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/index.html b/www/index.html index 9af39bdf..35c4606d 100644 --- a/www/index.html +++ b/www/index.html @@ -161,8 +161,8 @@ }); } - // Auto-reload every 5 seconds - setInterval(reload, 5000); + // Auto-reload + setInterval(reload, 1000); const url2 = new URL('api', location.href); fetch(url2, {cache: 'no-cache'}).then(r => r.json()).then(data => {