diff --git a/script/single.js b/script/single.js index dc8fae7..5d63b5f 100644 --- a/script/single.js +++ b/script/single.js @@ -59,12 +59,12 @@ function activateButton(button, doPush = true, firstLoad = false) { } function useFragment(firstLoad = false) { - let button; + let button = altButtons[0]; let frag = location.hash.replace(/^#/, ''); if (frag) { let selected = document.getElementById(frag); - button = selected ? selected : altButtons[0]; + if (selected) button = selected; } let id;