fix back button
This commit is contained in:
parent
cf8468b123
commit
91af2d9411
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue