Skip to content

Commit

Permalink
Added check for blank default on load
Browse files Browse the repository at this point in the history
  • Loading branch information
tybayn committed Oct 22, 2024
1 parent 310fdd0 commit e002e76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ <h4>Sanity Overlay</h4>
document.getElementById("maps_box").style.left = "-388px";
}
</script>
<script src="themes-v6/themes-v5.js"></script>
<script src="themes-v6/themes-v6.js"></script>
<script src="scripts-v6/audio_controller-v3.js"></script>
<script src="scripts-v6/metronome-v3.js"></script>
<script src="scripts-v6/timer-v2.js"></script>
Expand Down
4 changes: 4 additions & 0 deletions themes-v6/themes-v5.js → themes-v6/themes-v6.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ function changeTheme(name = null){
]

let theme_name = name != null ? name : $("#theme").val()
if(themes[theme_name] == undefined){
theme_name = "Default"
document.getElementById("theme").value = "Default"
}

clearInterval(light_interval)
$(".ghost_card").removeClass("c-light-div")
Expand Down

0 comments on commit e002e76

Please sign in to comment.