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 167a5ce commit 14bf5e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ document.addEventListener('DOMContentLoaded', () => {
target = document.getElementById(targetId || 'translation-bar');
if (target) {
e.preventDefault();
window.location.hash = e.target.hash;
target.scrollIntoView({behavior: 'smooth', block: 'start'});
}
}));
Expand Down Expand Up @@ -81,4 +82,4 @@ document.addEventListener('DOMContentLoaded', () => {
}
}
}
})();
})();

0 comments on commit 14bf5e3

Please sign in to comment.