Scroll into highlighted line

This commit is contained in:
Kenox 2022-11-03 18:40:00 +01:00
commit 77f70a4f39
2 changed files with 2 additions and 1 deletions

View file

@ -233,6 +233,7 @@ haste.prototype.loadDocument = function(key) {
if(window.location.hash) {
const hash = window.location.hash.substring(1);
highlightLine(hash)
document.getElementsByClassName("highlight")[0].scrollIntoView();
}
}
else {

File diff suppressed because one or more lines are too long