Not handle external link

This commit is contained in:
Gustavo Maximiliano Cortez 2016-10-12 11:40:14 -03:00
commit 9427952fc7
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -1,8 +1,19 @@
'use strict';
angular.module('copayApp.services').service('externalLinkService', function(platformInfo, nodeWebkitService) {
angular.module('copayApp.services').service('externalLinkService', function($window, $timeout, platformInfo, nodeWebkitService) {
this.open = function(url, target) {
var old = $window.handleOpenURL;
$window.handleOpenURL = function(url) {
// Ignore external URLs
$log.debug('Skip: ' + url);
};
$timeout(function() {
$window.handleOpenURL = old;
}, 500);
if (platformInfo.isNW) {
nodeWebkitService.openExternalLink(url);
} else {