Merge pull request #851 from matiu/bug/undefined3

fix undefined bugs
This commit is contained in:
Gustavo Maximiliano Cortez 2014-07-07 20:44:59 -03:00
commit 6ea9831913
2 changed files with 4 additions and 1 deletions

View file

@ -4,8 +4,9 @@ var bitcore = require('bitcore');
angular.module('copayApp.services')
.factory('controllerUtils', function($rootScope, $sce, $location, notification, $timeout, Socket, video, uriHandler) {
var root = {};
root.getVideoMutedStatus = function(copayer) {
if (!$rootScope.videoInfo) return;
var vi = $rootScope.videoInfo[copayer]
if (!vi) {
return;