From f03e4f3ce262d97b7d798403af80b9be3437d520 Mon Sep 17 00:00:00 2001 From: githost Date: Mon, 3 Jul 2023 21:54:53 +0000 Subject: [PATCH] fix: small formatting issue --- www/assets/js/history-loggedin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/www/assets/js/history-loggedin.js b/www/assets/js/history-loggedin.js index e31787ceb4..a5180c8114 100644 --- a/www/assets/js/history-loggedin.js +++ b/www/assets/js/history-loggedin.js @@ -32,19 +32,19 @@ function handleDaySelector() { const daySelector = document.querySelector("select[name=days]"); - const filter = document.getElementById('filter'); + const filter = document.getElementById('filter'); daySelector.addEventListener("change", (e) => { const days = e.target.value; const protocol = window.location.protocol; const hostname = window.location.hostname; - if (filter.value) { - document.querySelector('form[name=filterLog]').submit(); - return; - } + if (filter.value) { + document.querySelector('form[name=filterLog]').submit(); + return; + } - const redirectUri = protocol + "//" + hostname + "/testlog/" + days + "/"; + const redirectUri = protocol + "//" + hostname + "/testlog/" + days + "/"; window.location = redirectUri; }); }