fix ANGULAR JS PROBLEMMMAADKSKDLALS:DKA:LSDA
This commit is contained in:
parent
fbe7a34197
commit
db1cba99fb
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ angular.module('copay.controllerUtils')
|
||||||
var root = {};
|
var root = {};
|
||||||
$rootScope.videoSrc = {};
|
$rootScope.videoSrc = {};
|
||||||
$rootScope.getVideoURL = function(copayer) {
|
$rootScope.getVideoURL = function(copayer) {
|
||||||
return decodeURIComponent($rootScope.videoSrc[copayer]);
|
return $sce.trustAsResourceUrl(decodeURI($rootScope.videoSrc[copayer]));
|
||||||
};
|
};
|
||||||
|
|
||||||
root.logout = function() {
|
root.logout = function() {
|
||||||
|
|
@ -36,7 +36,7 @@ angular.module('copay.controllerUtils')
|
||||||
root.onErrorDigest(err);
|
root.onErrorDigest(err);
|
||||||
}
|
}
|
||||||
$sce.trustAsResourceUrl(url);
|
$sce.trustAsResourceUrl(url);
|
||||||
$rootScope.videoSrc[peerID] = encodeURIComponent(url);
|
$rootScope.videoSrc[peerID] = encodeURI(url);
|
||||||
$rootScope.$apply();
|
$rootScope.$apply();
|
||||||
};
|
};
|
||||||
w.on('badMessage', function(peerId) {
|
w.on('badMessage', function(peerId) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue