Fully fix URL splitting code.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Captain ALM 2022-07-30 17:03:52 +01:00
parent 38e5bad973
commit 2477a7ee20
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -77,8 +77,7 @@ function ToggleTheme() {
let thsty = document.getElementById("style-theme")
let logo = document.getElementById("logo")
let url = document.location.href
url = url.split("#", 1)
url = url.split('?', 1)
url = url.split("#", 1)[0].split('?', 1)[0]
if (document.getElementById("so-theme")) {
thimg.src = SunImageURL
thimg.alt = "()"