mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 18:21:57 +01:00
Merge pull request #4126 from BlueWallet/logerror
ADD: Log openURL error
This commit is contained in:
commit
b93d304fbb
@ -418,6 +418,7 @@
|
||||
"eta_3h": "ETA: In ~3 hours",
|
||||
"eta_1d": "ETA: In ~1 day",
|
||||
"list_title": "Transactions",
|
||||
"open_url_error": "Unable to open URL with the default browser. Please change your default browser and try again",
|
||||
"rbf_explain": "We will replace this transaction with one with a higher fee, so it should be mined faster. This is called RBF—Replace by Fee.",
|
||||
"rbf_title": "Bump Fee (RBF)",
|
||||
"status_bump": "Bump Fee",
|
||||
|
@ -111,11 +111,24 @@ const TransactionsDetails = () => {
|
||||
|
||||
const handleOnOpenTransactionOnBlockExporerTapped = () => {
|
||||
const url = `https://mempool.space/tx/${tx.hash}`;
|
||||
Linking.canOpenURL(url).then(supported => {
|
||||
if (supported) {
|
||||
Linking.openURL(url);
|
||||
}
|
||||
});
|
||||
Linking.canOpenURL(url)
|
||||
.then(supported => {
|
||||
if (supported) {
|
||||
Linking.openURL(url).catch(e => {
|
||||
console.log('openURL failed in handleOnOpenTransactionOnBlockExporerTapped');
|
||||
console.log(e.message);
|
||||
alert(e.message);
|
||||
});
|
||||
} else {
|
||||
console.log('canOpenURL supported is false in handleOnOpenTransactionOnBlockExporerTapped');
|
||||
alert(loc.transactions.open_url_error);
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
console.log('canOpenURL failed in handleOnOpenTransactionOnBlockExporerTapped');
|
||||
console.log(e.message);
|
||||
alert(e.message);
|
||||
});
|
||||
};
|
||||
|
||||
const handleCopyPress = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user