| ... | @@ -214,7 +214,7 @@ | ... | @@ -214,7 +214,7 @@ |
| 214 | // Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work. | 214 | // Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work. |
| 215 | requestAnimationFrame(function() { | 215 | requestAnimationFrame(function() { |
| 216 | const slDom = document.getElementById("l" + sourceLocationIndex); | 216 | const slDom = document.getElementById("l" + sourceLocationIndex); |
| 217 | slDom.scrollIntoView({ | 217 | if (slDom != null) slDom.scrollIntoView({ |
| 218 | behavior: "smooth", | 218 | behavior: "smooth", |
| 219 | block: "center", | 219 | block: "center", |
| 220 | }); | 220 | }); |