mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
[skip ci] Update permission check logic
This commit is contained in:
parent
1b92a86842
commit
2393fca435
1 changed files with 3 additions and 4 deletions
|
@ -91,14 +91,13 @@ class BuyWebViewPageBodyState extends State<BuyWebViewPageBody> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final url = await _webViewController!.getUrl();
|
final url = (await _webViewController!.getUrl())?.toString();
|
||||||
final urlString = url.toString();
|
|
||||||
if (url == null) {
|
if (url == null) {
|
||||||
throw Exception('_saveOrder: Url is null');
|
throw Exception('_saveOrder: Url is null');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (urlString.toString().contains(keyword)) {
|
if (url.contains(keyword)) {
|
||||||
final urlParts = urlString.split(splitSymbol);
|
final urlParts = url.split(splitSymbol);
|
||||||
orderId = urlParts.last;
|
orderId = urlParts.last;
|
||||||
widget.ordersStore.orderId = orderId;
|
widget.ordersStore.orderId = orderId;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue