diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2018-09-14 17:32:23 +0100 |
---|---|---|
committer | Zarino Zappia <mail@zarino.co.uk> | 2018-09-19 11:14:56 +0100 |
commit | 8f2ce13bec69151aa10ef0676d9c417b0fde6fa3 (patch) | |
tree | 144c18a40f58c5a81d379b9267b12845d41ee16b /docs/_posts/2016-12-16-v2.0-javascript-improvements.md | |
parent | 240c248ec14cd339f59a9977cd2539bc0ce1f39e (diff) |
Avoid exception if homepage does not include a .report-a-problem-btn
Some cobrands (like Collideoscope) don’t have a .report-a-problem-btn
in their mobile nav menu, so .querySelector() would raise an exception
when we tried to attach an event listener to it.
Now we check that the element exists before attaching the listener.
Diffstat (limited to 'docs/_posts/2016-12-16-v2.0-javascript-improvements.md')
0 files changed, 0 insertions, 0 deletions