Add better support for tabs #15

Manually merged
cadence merged 5 commits from blankie/breezewiki:tabs into main 2024-06-05 11:09:06 +00:00
Showing only changes of commit dcb8a8a590 - Show all commits

Prevent making duplicate history entries

blankie 2023-11-06 20:31:20 +11:00
Signed by untrusted user: blankie
GPG key ID: CC15FC822C7F61F5

View file

@ -67,6 +67,5 @@ function setCurrentTab(tabber, tab, content) {
content.classList.add("wds-is-current");
if (tab.dataset.hash) {
location.hash = "#" + tab.dataset.hash;
history.pushState(null, "", "#" + tab.dataset.hash);
}
}