diff --git a/public/views/includes/note.html b/public/views/includes/note.html
index 451ac6baf..e52beba85 100644
--- a/public/views/includes/note.html
+++ b/public/views/includes/note.html
@@ -1,11 +1,11 @@
-
diff --git a/src/js/controllers/modals/txDetails.js b/src/js/controllers/modals/txDetails.js
index 84ca22954..2db8bb8b1 100644
--- a/src/js/controllers/modals/txDetails.js
+++ b/src/js/controllers/modals/txDetails.js
@@ -1,6 +1,6 @@
'use strict';
-angular.module('copayApp.controllers').controller('txDetailsController', function($rootScope, $log, $scope, $filter, $stateParams, $ionicPopup, gettextCatalog, profileService, configService, lodash, txFormatService) {
+angular.module('copayApp.controllers').controller('txDetailsController', function($rootScope, $log, $scope, $filter, $stateParams, $ionicPopup, gettextCatalog, profileService, configService, lodash, txFormatService, platformInfo) {
var self = $scope.self;
var wallet = profileService.getWallet($stateParams.walletId);
@@ -36,7 +36,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
txid: $scope.btx.txid,
};
- if (!lodash.isEmpty($scope.data.comment)) {
+ if ($scope.data.comment) {
args.body = $scope.data.comment;
};
@@ -80,6 +80,15 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
});
};
+ $scope.openExternalLink = function(url, target) {
+ if (platformInfo.isNW) {
+ nodeWebkit.openExternalLink(url);
+ } else {
+ target = target || '_blank';
+ var ref = window.open(url, target, 'location=no');
+ }
+ };
+
$scope.getShortNetworkName = function() {
var n = wallet.credentials.network;
return n.substring(0, 4);