aboutsummaryrefslogtreecommitdiff
path: root/lib/fuzzer
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-05 17:31:22 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-08-07 00:48:32 -0700
commit1484f174eacb079209c92482d5d9fb360c00c09a (patch)
tree89785481092e1102ef8e04c4ad6f982270646d65 /lib/fuzzer
parent895fa87d7717ae861dd925b814be31897abd65c1 (diff)
downloadzig-1484f174eacb079209c92482d5d9fb360c00c09a.tar.gz
zig-1484f174eacb079209c92482d5d9fb360c00c09a.zip
fuzzer web ui: fail scrolling into view gracefully
Diffstat (limited to 'lib/fuzzer')
-rw-r--r--lib/fuzzer/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzer/main.js b/lib/fuzzer/main.js
index 773cdfe902..ce02276f98 100644
--- a/lib/fuzzer/main.js
+++ b/lib/fuzzer/main.js
@@ -214,7 +214,7 @@
// Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work.
requestAnimationFrame(function() {
const slDom = document.getElementById("l" + sourceLocationIndex);
- slDom.scrollIntoView({
+ if (slDom != null) slDom.scrollIntoView({
behavior: "smooth",
block: "center",
});