mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-21 14:34:55 +01:00
FIX: lapp browser when typing URL without https scheme it doesnt work (closes #732)
This commit is contained in:
parent
fdded0769f
commit
b5339f2aa7
1 changed files with 5 additions and 1 deletions
|
@ -396,7 +396,11 @@ export default class Browser extends Component {
|
|||
editable
|
||||
onSubmitEditing={() => {
|
||||
Keyboard.dismiss();
|
||||
this.setState({ url: this.state.stateURL });
|
||||
let url = this.state.stateURL;
|
||||
if (!url.toLowerCase().startsWith('http://') && !url.toLowerCase().startsWith('https://')) {
|
||||
url = 'https://' + url;
|
||||
}
|
||||
this.setState({ url });
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
|
|
Loading…
Add table
Reference in a new issue