mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-16 04:03:47 +03:00
fix: ignore tab URL hashes in navigation history
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
function onTabChange(newValue: string) {
|
function onTabChange(newValue: string) {
|
||||||
if (useHash && page.url.hash !== newValue) {
|
if (useHash && page.url.hash !== newValue) {
|
||||||
window.location.hash = newValue;
|
history.replaceState(history.state, "",location.pathname + location.search + `#${newValue}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user