Fixes for Android 4.4
This commit is contained in:
parent
be2bc4cddb
commit
1d025cbf35
2 changed files with 4 additions and 4 deletions
|
|
@ -32,10 +32,10 @@ angular.module('bitcoincom.directives')
|
||||||
'3': ['BHD', 'IQD', 'JOD', 'KWD', 'OMR', 'TND'],
|
'3': ['BHD', 'IQD', 'JOD', 'KWD', 'OMR', 'TND'],
|
||||||
'8': ['BCH', 'BTC']
|
'8': ['BCH', 'BTC']
|
||||||
};
|
};
|
||||||
var localizeNumbers = function(x, minimumFractionDigits = 0, useGrouping = true) {
|
var localizeNumbers = function(x, minimumFractionDigits) {
|
||||||
return parseFloat(x).toLocaleString(uxLanguage.getCurrentLanguage(), {
|
return parseFloat(x).toLocaleString(uxLanguage.getCurrentLanguage(), {
|
||||||
minimumFractionDigits: minimumFractionDigits,
|
minimumFractionDigits: minimumFractionDigits,
|
||||||
useGrouping: useGrouping
|
useGrouping: true
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -80,7 +80,7 @@ angular.module('bitcoincom.directives')
|
||||||
if (isNaN(parsed)) {
|
if (isNaN(parsed)) {
|
||||||
buildAmount('-', '', '');
|
buildAmount('-', '', '');
|
||||||
} else {
|
} else {
|
||||||
valueFormatted = localizeNumbers(Math.round(parsed));
|
valueFormatted = localizeNumbers(Math.round(parsed), 0);
|
||||||
buildAmount(valueFormatted, '', '');
|
buildAmount(valueFormatted, '', '');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ angular.module('copayApp.services').factory('clipboardService', function ($http,
|
||||||
nodeWebkitService.writeToClipboard(data);
|
nodeWebkitService.writeToClipboard(data);
|
||||||
} else if (navigator && navigator.clipboard) {
|
} else if (navigator && navigator.clipboard) {
|
||||||
$log.debug("Use navigator clipboard.")
|
$log.debug("Use navigator clipboard.")
|
||||||
navigator.clipboard.writeText(data).catch(err => {
|
navigator.clipboard.writeText(data).catch(function onClipboardError(err) {
|
||||||
$log.debug("Clipboard writing is not supported in your browser..");
|
$log.debug("Clipboard writing is not supported in your browser..");
|
||||||
});
|
});
|
||||||
} else if (clipboard.supported) {
|
} else if (clipboard.supported) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue