fix: webview loading crash
This commit is contained in:
parent
39d6f0fbd6
commit
6a8e422a30
4 changed files with 17 additions and 11 deletions
|
@ -34,8 +34,8 @@ class CookieCatcher : AppCompatActivity() {
|
|||
|
||||
val webView = findViewById<WebView>(R.id.discordWebview)
|
||||
|
||||
val cookies: CookieManager = Injekt.get<NetworkHelper>().cookieJar.manager
|
||||
cookies.setAcceptThirdPartyCookies(webView, true)
|
||||
val cookies: CookieManager? = Injekt.get<NetworkHelper>().cookieJar.manager
|
||||
cookies?.setAcceptThirdPartyCookies(webView, true)
|
||||
|
||||
webView.apply {
|
||||
settings.javaScriptEnabled = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue