Commit da7d244
authored
fix: do not remove
Do not attempt to remove #editOnGitHubLink's .parentNode if it doesn't exist on the page.
For example, this element does not exist on 404 page: https://nodejs.org/amNotExistEdit on GitHub if it does not exist (#4739)1 parent 145144e commit da7d244
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
0 commit comments