From c394b65e757cdcca7d0755b087b7d8dde9650ad1 Mon Sep 17 00:00:00 2001 From: John McLear Date: Mon, 20 Jul 2020 09:08:40 +0100 Subject: [PATCH] tests: Further scroll frontend test fix- use var instead of let (#4184) --- src/static/js/broadcast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/broadcast.js b/src/static/js/broadcast.js index 6f86e50f6..4b7d02127 100644 --- a/src/static/js/broadcast.js +++ b/src/static/js/broadcast.js @@ -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'}); } }