mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
footer: use text() when we don't need HTML
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ function piholeChanged(blocking, timer = null) {
|
||||
const enaT = $("#enableTimer");
|
||||
|
||||
if (timer !== null && Number.parseFloat(timer) > 0) {
|
||||
enaT.html(Date.now() + Number.parseFloat(timer) * 1000);
|
||||
enaT.text(Date.now() + Number.parseFloat(timer) * 1000);
|
||||
setTimeout(countDown, 100);
|
||||
}
|
||||
|
||||
@@ -591,7 +591,7 @@ function updateVersionInfo() {
|
||||
$(() => {
|
||||
if (!globalThis._isLoginPage) updateInfo();
|
||||
const enaT = $("#enableTimer");
|
||||
const target = new Date(Number.parseInt(enaT.html(), 10));
|
||||
const target = new Date(Number.parseInt(enaT.text(), 10));
|
||||
const seconds = Math.round((target.getTime() - Date.now()) / 1000);
|
||||
if (seconds > 0) {
|
||||
setTimeout(countDown, 100);
|
||||
|
||||
Reference in New Issue
Block a user