fix undefined bugs
This commit is contained in:
parent
d4c9c87076
commit
d099db6cde
2 changed files with 4 additions and 1 deletions
|
|
@ -220,6 +220,7 @@ Insight.prototype._requestNode = function(options, callback) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Insight.prototype._requestBrowser = function(options, callback) {
|
Insight.prototype._requestBrowser = function(options, callback) {
|
||||||
|
var self = this;
|
||||||
var request = new XMLHttpRequest();
|
var request = new XMLHttpRequest();
|
||||||
var url = (options.schema || 'http') + '://' + options.host;
|
var url = (options.schema || 'http') + '://' + options.host;
|
||||||
|
|
||||||
|
|
@ -242,6 +243,7 @@ Insight.prototype._requestBrowser = function(options, callback) {
|
||||||
return callback(new Error('Insight request timeout'));
|
return callback(new Error('Insight request timeout'));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
request.onreadystatechange = function() {
|
request.onreadystatechange = function() {
|
||||||
if (request.readyState !== 4) return;
|
if (request.readyState !== 4) return;
|
||||||
var ret, errTxt, e;
|
var ret, errTxt, e;
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,9 @@ var bitcore = require('bitcore');
|
||||||
angular.module('copayApp.services')
|
angular.module('copayApp.services')
|
||||||
.factory('controllerUtils', function($rootScope, $sce, $location, notification, $timeout, Socket, video, uriHandler) {
|
.factory('controllerUtils', function($rootScope, $sce, $location, notification, $timeout, Socket, video, uriHandler) {
|
||||||
var root = {};
|
var root = {};
|
||||||
|
|
||||||
root.getVideoMutedStatus = function(copayer) {
|
root.getVideoMutedStatus = function(copayer) {
|
||||||
|
if (!$rootScope.videoInfo) return;
|
||||||
|
|
||||||
var vi = $rootScope.videoInfo[copayer]
|
var vi = $rootScope.videoInfo[copayer]
|
||||||
if (!vi) {
|
if (!vi) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue