From f8aaea34768d4bfd34b2796df6db8d07edb70ece Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 27 Nov 2024 16:16:27 +0800 Subject: [PATCH] WebUI: locate element faster --- src/webui/www/private/views/cookies.html | 2 +- src/webui/www/private/views/log.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/private/views/cookies.html b/src/webui/www/private/views/cookies.html index 677e4534b..5767b39d1 100644 --- a/src/webui/www/private/views/cookies.html +++ b/src/webui/www/private/views/cookies.html @@ -178,7 +178,7 @@ addCookie(); }); - document.querySelector("#saveButton").addEventListener("click", (event) => { + document.getElementById("saveButton").addEventListener("click", (event) => { save(); }); }; diff --git a/src/webui/www/private/views/log.html b/src/webui/www/private/views/log.html index 3fa373fd0..eab8c2134 100644 --- a/src/webui/www/private/views/log.html +++ b/src/webui/www/private/views/log.html @@ -97,7 +97,7 @@ - +