diff options
Diffstat (limited to 'web/js/front.js')
-rw-r--r-- | web/js/front.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/front.js b/web/js/front.js index 67486888b..db0228597 100644 --- a/web/js/front.js +++ b/web/js/front.js @@ -17,7 +17,7 @@ document.getElementById('pc').focus(); } var lk = document.querySelector('span.report-a-problem-btn'); - if (lk.addEventListener) { + if (lk && lk.addEventListener) { lk.addEventListener('click', function(){ scrollTo(0,0); }); |