mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-10 06:36:16 +02:00
tests: Further scroll frontend test fix- use var instead of let (#4184)
This commit is contained in:
parent
29e6daedcb
commit
c394b65e75
@ -595,7 +595,7 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
|
||||
// Sets the Y scrolling of the browser to go to this line
|
||||
var line = $('#innerdocbody').find("div:nth-child("+(lineNumber+1)+")");
|
||||
var newY = $(line)[0].offsetTop;
|
||||
let ecb = document.getElementById('editorcontainerbox');
|
||||
var ecb = document.getElementById('editorcontainerbox');
|
||||
ecb.scrollTo({top: newY, behavior: 'smooth'});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user