tests: Further scroll frontend test fix- use var instead of let (#4184)

This commit is contained in:
John McLear 2020-07-20 09:08:40 +01:00 committed by GitHub
parent 29e6daedcb
commit c394b65e75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'});
} }
} }