handle http urls

This commit is contained in:
Marty Alcala 2016-10-18 18:39:23 -04:00
commit effd8658f2
3 changed files with 38 additions and 1 deletions

View file

@ -12,6 +12,15 @@ angular.module('copayApp.directives')
scope.type = data.type;
scope.showMenu = true;
console.log('scope.type', scope.type);
if(scope.type === 'url') {
console.log('scope.data', scope.data);
console.log('scope.data.indexOf("https://")', scope.data.indexOf('https://'));
if(scope.data.indexOf('https://') === 0) {
scope.https = true;
}
}
console.log('data', data);
});
});