Skip to content

Commit f9da442

Browse files
committed
fuzzer web ui: fail scrolling into view gracefully
1 parent a9d0665 commit f9da442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fuzzer/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
// Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work.
215215
requestAnimationFrame(function() {
216216
const slDom = document.getElementById("l" + sourceLocationIndex);
217-
slDom.scrollIntoView({
217+
if (slDom != null) slDom.scrollIntoView({
218218
behavior: "smooth",
219219
block: "center",
220220
});

0 commit comments

Comments
 (0)