fix ANGULAR JS PROBLEMMMAADKSKDLALS:DKA:LSDA

This commit is contained in:
Manuel Araoz 2014-04-23 21:26:41 -03:00
commit db1cba99fb

View file

@ -5,7 +5,7 @@ angular.module('copay.controllerUtils')
var root = {};
$rootScope.videoSrc = {};
$rootScope.getVideoURL = function(copayer) {
return decodeURIComponent($rootScope.videoSrc[copayer]);
return $sce.trustAsResourceUrl(decodeURI($rootScope.videoSrc[copayer]));
};
root.logout = function() {
@ -36,7 +36,7 @@ angular.module('copay.controllerUtils')
root.onErrorDigest(err);
}
$sce.trustAsResourceUrl(url);
$rootScope.videoSrc[peerID] = encodeURIComponent(url);
$rootScope.videoSrc[peerID] = encodeURI(url);
$rootScope.$apply();
};
w.on('badMessage', function(peerId) {