mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
ADD: Log openURL error
This commit is contained in:
parent
ccbd5f185c
commit
4f211a9be8
@ -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