Ind.ie is now Small Technology Foundation.
Commit fd1c487d authored by Aral Balkan's avatar Aral Balkan

Fixed bug with the timeline JS failing on Conversation timelines when there...

Fixed bug with the timeline JS failing on Conversation timelines when there are no messages (was trying to scroll to the last item, while last item was null).
parent 83a4223a
......@@ -47,7 +47,9 @@ window.addEventListener('load', function(){
// Make sure we start by showing the bottommost message
var lastMessage = messages.lastElementChild;
lastMessage.scrollIntoView();
if (lastMessage != null) {
lastMessage.scrollIntoView();
}
//
// Poll every two seconds for new messages.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment