From 91d64a276d240f0e86cf75a258549c9b9f4234f2 Mon Sep 17 00:00:00 2001 From: Marc Bresson Date: Tue, 27 Sep 2022 16:09:08 +0200 Subject: [PATCH] FIX #20; FIX : changing interval period now works --- js/indexes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/indexes.js b/js/indexes.js index d499be6..c138116 100644 --- a/js/indexes.js +++ b/js/indexes.js @@ -26,7 +26,7 @@ class Indexes{ } time_until_next(){ - let milliseconds_remaining = this.last()[0] + refresh_period * 1000 - Date.now() + let milliseconds_remaining = this.last()[0] + this.refresh_period * 1000 - Date.now() return Math.ceil(milliseconds_remaining / 1000) }