fuzzer web ui: fail scrolling into view gracefully

This commit is contained in:
Andrew Kelley committed 2024-08-07 00:48:32 -07:00
1 parent 895fa87d77
commit 1484f174ea
1 file changed
+1 -1
+1 -1
View File
@@ -214,7 +214,7 @@
// Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work. // Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work.
requestAnimationFrame(function() { requestAnimationFrame(function() {
const slDom = document.getElementById("l" + sourceLocationIndex); const slDom = document.getElementById("l" + sourceLocationIndex);
slDom.scrollIntoView({ if (slDom != null) slDom.scrollIntoView({
behavior: "smooth", behavior: "smooth",
block: "center", block: "center",
}); });