Fix base URL cleaning for IE.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Captain ALM 2022-07-30 17:02:12 +01:00
parent d9e37e4e2e
commit 38e5bad973
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

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