Fully fix URL splitting code.
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
38e5bad973
commit
2477a7ee20
3
index.js
3
index.js
@ -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 = "()"
|
||||
|
Loading…
Reference in New Issue
Block a user