Enable localStorage in WebView
This commit is contained in:
parent
7753161332
commit
a106104027
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ class WebViewActivity : BaseActivity<WebviewActivityBinding>() {
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.webview.settings.javaScriptEnabled = true
|
binding.webview.settings.javaScriptEnabled = true
|
||||||
|
binding.webview.settings.domStorageEnabled = true
|
||||||
|
|
||||||
binding.webview.webChromeClient = object : WebChromeClient() {
|
binding.webview.webChromeClient = object : WebChromeClient() {
|
||||||
override fun onProgressChanged(view: WebView?, newProgress: Int) {
|
override fun onProgressChanged(view: WebView?, newProgress: Int) {
|
||||||
|
|
Reference in a new issue