From 0b2ff2e871deea80da0dcc6acd919dd38c8d3774 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Fri, 17 Jul 2015 16:46:24 +0200 Subject: [PATCH] fix homepage JS for anon --- public/javascripts/big.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/big.js b/public/javascripts/big.js index 9d7cd0b35b..682e2aa5bc 100644 --- a/public/javascripts/big.js +++ b/public/javascripts/big.js @@ -1635,7 +1635,7 @@ lichess.storage = { }; var resizeTimeline = function() { var e = $('#timeline'); - e.height(561 - e.offset().top); + if (e.length) e.height(561 - e.offset().top); }; resizeTimeline(); lichess.socket = new lichess.StrongSocket(