Merge pull request #221 from Bitcoin-com/wallet/task/416

Wallet/task/416 Hotfix
This commit is contained in:
Jean-Baptiste Dominguez 2018-07-17 18:40:11 +09:00 committed by GitHub
commit 882d4f1e82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,10 +29,10 @@ angular.module('copayApp.services').factory('clipboardService', function ($http,
cb(nodeWebkitService.readFromClipboard()); cb(nodeWebkitService.readFromClipboard());
} else { } else {
navigator.clipboard.readText() navigator.clipboard.readText()
.then(text => { .then(function (text) {
cb(text); cb(text);
}) })
.catch(err => { .catch(function (err) {
$log.debug("Clipboard reading is not supported in browser.."); $log.debug("Clipboard reading is not supported in browser..");
}); });