Enable DOM storage so account authorization pages requiring \local storage work.
This commit is contained in:
parent
b54ee03d95
commit
6b677824d8
|
@ -133,6 +133,7 @@ public class WebviewConnectActivity extends BaseActivity {
|
|||
binding.webviewConnect.getSettings().setJavaScriptEnabled(true);
|
||||
String user_agent = sharedpreferences.getString(getString(R.string.SET_CUSTOM_USER_AGENT), Helper.USER_AGENT);
|
||||
binding.webviewConnect.getSettings().setUserAgentString(user_agent);
|
||||
binding.webviewConnect.getSettings().setDomStorageEnabled(true);
|
||||
CookieManager.getInstance().setAcceptThirdPartyCookies(binding.webviewConnect, true);
|
||||
|
||||
|
||||
|
|
|
@ -412,6 +412,7 @@ public class Helper {
|
|||
webView.setBackgroundColor(Color.TRANSPARENT);
|
||||
webView.getSettings().setAppCacheEnabled(true);
|
||||
webView.getSettings().setDatabaseEnabled(true);
|
||||
webView.getSettings().setDomStorageEnabled(true);
|
||||
webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||
webView.setWebChromeClient(new WebChromeClient() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue