Login fix
This commit is contained in:
parent
65e14a02a1
commit
643f5e81b0
3 changed files with 27 additions and 23 deletions
|
@ -224,10 +224,15 @@ class LoginBrowser extends StatelessWidget {
|
|||
children: <Widget>[
|
||||
Expanded(
|
||||
child: Container(
|
||||
|
||||
child: InAppWebView(
|
||||
initialUrl: 'https://deezer.com/login',
|
||||
onLoadStart: (InAppWebViewController controller, String url) async {
|
||||
|
||||
//Offers URL
|
||||
if (url.contains('/offers')) {
|
||||
controller.evaluateJavascript(source: 'window.location.href = "/open_app"');
|
||||
}
|
||||
|
||||
//Parse arl from url
|
||||
if (url.startsWith('intent://deezer.page.link')) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue