forked from cadence/breezewiki
Compare commits
1 commit
0e2b5ea452
...
ba08b2bfac
Author | SHA1 | Date | |
---|---|---|---|
ba08b2bfac |
1 changed files with 1 additions and 4 deletions
|
@ -66,9 +66,6 @@ function setCurrentTab(tabber, tab, content) {
|
||||||
tab.classList.add("wds-is-current");
|
tab.classList.add("wds-is-current");
|
||||||
content.classList.add("wds-is-current");
|
content.classList.add("wds-is-current");
|
||||||
if (tab.dataset.hash) {
|
if (tab.dataset.hash) {
|
||||||
let fragment = "#" + tab.dataset.hash;
|
location.hash = "#" + tab.dataset.hash;
|
||||||
if (location.hash !== fragment) {
|
|
||||||
history.pushState(null, "", fragment);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue