mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
FIX: cant open block explorer in browser (closes #4244)
This commit is contained in:
parent
44a1b7a98c
commit
4f6bf7a754
2 changed files with 19 additions and 1 deletions
|
@ -101,4 +101,14 @@
|
|||
<meta-data android:name="com.bugsnag.android.API_KEY" android:value="17ba9059f676f1cc4f45d98182388b01" />
|
||||
</application>
|
||||
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<data android:scheme="https"/>
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<data android:scheme="http"/>
|
||||
</intent>
|
||||
</queries>
|
||||
</manifest>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ScrollView, View, StyleSheet } from 'react-native';
|
||||
import { ScrollView, View, StyleSheet, Linking } from 'react-native';
|
||||
import wif from 'wif';
|
||||
import bip38 from 'bip38';
|
||||
import BIP32Factory from 'bip32';
|
||||
|
@ -241,6 +241,14 @@ export default class Selftest extends Component {
|
|||
}
|
||||
|
||||
//
|
||||
|
||||
if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
|
||||
assertStrictEqual(await Linking.canOpenURL('https://github.com/BlueWallet/BlueWallet/'), true, 'Linking can not open https url');
|
||||
} else {
|
||||
// skipping RN-specific test'
|
||||
}
|
||||
|
||||
//
|
||||
} catch (Err) {
|
||||
errorMessage += Err;
|
||||
isOk = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue