enable JavaScript in LoginWebViewActivity
This commit is contained in:
parent
0dc32774ec
commit
152c8b45d0
|
@ -1,5 +1,6 @@
|
||||||
package com.keylesspalace.tusky.components.login
|
package com.keylesspalace.tusky.components.login
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
@ -93,6 +94,9 @@ class LoginWebViewActivity : BaseActivity(), Injectable {
|
||||||
webView.settings.databaseEnabled = false
|
webView.settings.databaseEnabled = false
|
||||||
webView.settings.displayZoomControls = false
|
webView.settings.displayZoomControls = false
|
||||||
webView.settings.javaScriptCanOpenWindowsAutomatically = false
|
webView.settings.javaScriptCanOpenWindowsAutomatically = false
|
||||||
|
// Javascript needs to be enabled because otherwise 2FA does not work in some instances
|
||||||
|
@SuppressLint("SetJavaScriptEnabled")
|
||||||
|
webView.settings.javaScriptEnabled = true
|
||||||
webView.settings.userAgentString += " Tusky/${BuildConfig.VERSION_NAME}"
|
webView.settings.userAgentString += " Tusky/${BuildConfig.VERSION_NAME}"
|
||||||
|
|
||||||
val oauthUrl = data.oauthRedirectUrl
|
val oauthUrl = data.oauthRedirectUrl
|
||||||
|
|
Loading…
Reference in New Issue