Commit 46b0794
fix: Guard against a missing toolbar in the fragment jumper
Companion to upstream's def7144, which guards the same script against a
missing article.doc. Upstream needs no toolbar guard because every one of its
layouts has one; our landing layout does not, so jumpToAnchor could throw on
a page that has an article but no toolbar.
Treats an absent toolbar as a zero offset rather than returning early, so
anchor links keep working instead of silently doing nothing.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 39f4932 commit 46b0794
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments