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

@ -182,8 +182,7 @@ const language_ru_ru = {
"Go up": "Подниматься",
"Permission denied": "Доступ запрещен",
"Language": "Язык",
"Language changed, please restart Freezer to apply!":
"Язык изменен, перезапустите Freezer, чтобы применить!",
"Language changed, please restart Freezer to apply!": "Язык изменен, перезапустите Freezer, чтобы применить!",
"Importing...": "Импорт...",
"Radio": "Радио"
}

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 {

View file

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.4.1+1
version: 0.4.2+1
environment:
sdk: ">=2.8.0 <3.0.0"