mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 04:23:09 -07:00
Scroll into highlighted line
This commit is contained in:
parent
0e97684e5c
commit
77f70a4f39
2 changed files with 2 additions and 1 deletions
|
@ -233,6 +233,7 @@ haste.prototype.loadDocument = function(key) {
|
||||||
if(window.location.hash) {
|
if(window.location.hash) {
|
||||||
const hash = window.location.hash.substring(1);
|
const hash = window.location.hash.substring(1);
|
||||||
highlightLine(hash)
|
highlightLine(hash)
|
||||||
|
document.getElementsByClassName("highlight")[0].scrollIntoView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue