mirror of
https://github.com/treffynnon/sqlstyle.guide.git
synced 2025-03-09 12:49:51 -05:00
Update scripts.js
This commit is contained in:
parent
14bf5e3ca5
commit
50f1029657
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
target = document.getElementById(targetId || 'translation-bar');
|
||||
if (target) {
|
||||
e.preventDefault();
|
||||
window.location.hash = e.target.hash;
|
||||
history.pushState({}, `${document.title} - ${target.innerText}`, e.target.href);
|
||||
target.scrollIntoView({behavior: 'smooth', block: 'start'});
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue