Enable DOM storage so account authorization pages requiring \local storage work.

This commit is contained in:
Nolan Darilek 2022-07-26 11:48:57 -05:00
parent b54ee03d95
commit 6b677824d8
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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