percent-decode hash
This commit is contained in:
parent
9b2e2f1cd4
commit
8b32dfb6b9
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ function makeFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function useFragment() {
|
function useFragment() {
|
||||||
let frag = location.hash.replace(/^#/, '');
|
let frag = decodeURIComponent(location.hash).replace(/^#/, '');
|
||||||
|
|
||||||
if (frag == 'all' || !frag) {
|
if (frag == 'all' || !frag) {
|
||||||
clearForm();
|
clearForm();
|
||||||
|
|
|
@ -60,7 +60,7 @@ function activateButton(button, doPush = true, firstLoad = false) {
|
||||||
function useFragment(firstLoad = false) {
|
function useFragment(firstLoad = false) {
|
||||||
let button = altButtons[0];
|
let button = altButtons[0];
|
||||||
|
|
||||||
let frag = location.hash.replace(/^#/, '');
|
let frag = decodeURIComponent(location.hash).replace(/^#/, '');
|
||||||
if (frag) {
|
if (frag) {
|
||||||
let selected = document.getElementById(frag);
|
let selected = document.getElementById(frag);
|
||||||
if (selected) button = selected;
|
if (selected) button = selected;
|
||||||
|
|
Loading…
Reference in a new issue