Fix base URL cleaning for IE.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d9e37e4e2e
commit
38e5bad973
1
index.js
1
index.js
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user