Merge pull request #229 from Bitcoin-com/wallet/task/416
Bug - 416 - OSX paste-bugfix
This commit is contained in:
commit
e29dfa0f12
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('clipboardService', function ($http, $log, platformInfo, nodeWebkitService, gettextCatalog, ionicToast, clipboard) {
|
angular.module('copayApp.services').factory('clipboardService', function ($http, $log, $timeout, platformInfo, nodeWebkitService, gettextCatalog, ionicToast, clipboard) {
|
||||||
var root = {};
|
var root = {};
|
||||||
|
|
||||||
root.copyToClipboard = function (data) {
|
root.copyToClipboard = function (data) {
|
||||||
|
|
@ -26,7 +26,9 @@ angular.module('copayApp.services').factory('clipboardService', function ($http,
|
||||||
cb(text);
|
cb(text);
|
||||||
})
|
})
|
||||||
} else if (platformInfo.isNW) {
|
} else if (platformInfo.isNW) {
|
||||||
cb(nodeWebkitService.readFromClipboard());
|
$timeout(function() {
|
||||||
|
cb(nodeWebkitService.readFromClipboard());
|
||||||
|
},0);
|
||||||
} else {
|
} else {
|
||||||
navigator.clipboard.readText()
|
navigator.clipboard.readText()
|
||||||
.then(function (text) {
|
.then(function (text) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue