Skip to content

Commit

Permalink
Merge pull request #758 from RisingGlitch/main
Browse files Browse the repository at this point in the history
fix some more stuff
  • Loading branch information
IncognitoTGT authored Jun 5, 2024
2 parents 4814396 + 6336cb2 commit 0f38e65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/assets/scripts/s.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,17 @@ function loadCustomThemes() {
let customThemes = localStorage.getItem("customThemes")

customThemes = customThemes.split(",")
if (customThemes[0] != "" && customThemes.length == 1) {
if (customThemes[0] && customThemes.length == 1) {
return
} else {
customThemes.forEach(addToCustomThemes)
}
}

function addToCustomThemes(item) {
if (!item) {
return
}
let dropdownbox = document.getElementsByClassName("td")[0]
const newTheme = Object.assign(document.createElement("option"), {
text: item.toString(),
Expand Down

0 comments on commit 0f38e65

Please sign in to comment.