2015: live: Handle undefined stats.
authorDavid Thompson <dthompson2@worcester.edu>
Sat, 21 Mar 2015 12:36:28 +0000 (08:36 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Sat, 21 Mar 2015 12:36:28 +0000 (08:36 -0400)
2015/assets/js/stream.js

index 31fc34b99532d4675d8f98cdf93ed53bd0f902b8..43dc76c29e8a7492d3cf61041526485ded6ea35d 100644 (file)
@@ -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() {