diff options
Diffstat (limited to 'frontend.js')
-rw-r--r-- | frontend.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend.js b/frontend.js index a069966..ed093f4 100644 --- a/frontend.js +++ b/frontend.js @@ -28,10 +28,11 @@ exports.start = function(config) { } var eventStr = ''; for(var date in slides['events']) { + if(!slides['events'].hasOwnProperty(date)) { continue; } eventStr = eventStr + '<h4>'+date+'</h4><hr><ul>'; for(var ev in slides['events'][date]) { if(!slides['events'][date].hasOwnProperty(ev)) { continue; } - eventStr = eventStr + '<li>'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['text']+'</li>'; + eventStr = eventStr + '<li>'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['summary']+'</li>'; } eventStr = eventStr + '</ul>'; } |