mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
tests: Further scroll frontend test fix- use var instead of let (#4184)
This commit is contained in:
parent
29e6daedcb
commit
c394b65e75
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
|
||||||
// Sets the Y scrolling of the browser to go to this line
|
// Sets the Y scrolling of the browser to go to this line
|
||||||
var line = $('#innerdocbody').find("div:nth-child("+(lineNumber+1)+")");
|
var line = $('#innerdocbody').find("div:nth-child("+(lineNumber+1)+")");
|
||||||
var newY = $(line)[0].offsetTop;
|
var newY = $(line)[0].offsetTop;
|
||||||
let ecb = document.getElementById('editorcontainerbox');
|
var ecb = document.getElementById('editorcontainerbox');
|
||||||
ecb.scrollTo({top: newY, behavior: 'smooth'});
|
ecb.scrollTo({top: newY, behavior: 'smooth'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue