aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/js/front.js2
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);
});