Login fix

This commit is contained in:
exttex 2020-09-22 22:22:55 +02:00
parent 65e14a02a1
commit 643f5e81b0
3 changed files with 27 additions and 23 deletions

View file

@ -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 {