From: David Thompson Date: Sat, 21 Mar 2015 12:36:28 +0000 (-0400) Subject: 2015: live: Handle undefined stats. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=effe1eaf086e0b440fa37f80b775678ac116abf7;p=libreplanet-static.git 2015: live: Handle undefined stats. --- diff --git a/2015/assets/js/stream.js b/2015/assets/js/stream.js index 31fc34b9..43dc76c2 100644 --- a/2015/assets/js/stream.js +++ b/2015/assets/js/stream.js @@ -133,7 +133,7 @@ app.controller.prototype.updateStats = function() { app.view = function(ctrl) { var stream = ctrl.stream(); - var stats = ctrl.stats(); + var stats = ctrl.stats() || app.nullStats; var showDesktop = ctrl.showDesktop(); function renderSpeakerStream() {