Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
treffynnon authored Nov 4, 2019
1 parent 14bf5e3 commit 50f1029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
}
}));
Expand Down

0 comments on commit 50f1029

Please sign in to comment.