From 8d5eb3669d93cedf49d96b99ef7d63afccad3b1b Mon Sep 17 00:00:00 2001 From: ImAaronFR <96433859+ImAaronFR@users.noreply.github.com> Date: Mon, 31 Jan 2022 03:04:39 +0330 Subject: Update index.html Compatible client version with Role Icons --- api/client_test/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'api/client_test') diff --git a/api/client_test/index.html b/api/client_test/index.html index 0b3a775a..384c598a 100644 --- a/api/client_test/index.html +++ b/api/client_test/index.html @@ -65,11 +65,11 @@ localStorage.setItem("UserSettingsStore", JSON.stringify(settings)); } - - - - - + + + + + -- cgit 1.5.1 From 27f6589008e876ef5c3a8e2e8945899b4ab1e12a Mon Sep 17 00:00:00 2001 From: ImAaronFR <96433859+ImAaronFR@users.noreply.github.com> Date: Thu, 10 Feb 2022 08:26:48 +0330 Subject: [Fix] Trying to remove a null element (#625) Fix for: Uncaught TypeError: document.querySelector(...) is null --- api/client_test/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'api/client_test') diff --git a/api/client_test/index.html b/api/client_test/index.html index 384c598a..39ff346d 100644 --- a/api/client_test/index.html +++ b/api/client_test/index.html @@ -54,9 +54,14 @@ setInterval(() => { var token = JSON.parse(localStorage.getItem("token")); if (token) { + var logincss = document.querySelector('#logincss'), + canRemove = logincss ? logincss: ""; + if(canRemove !== "") { document.querySelector("#logincss").remove(); + canRemove = ""; + } } - }, 1000); + }, 1000) const settings = JSON.parse(localStorage.getItem("UserSettingsStore")); if (settings && settings.locale.length <= 2) { -- cgit 1.5.1