File tree 1 file changed +2
-3
lines changed
anychart/src/main/java/com/anychart
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ private void init() {
103
103
104
104
webView = view .findViewById (R .id .web_view );
105
105
WebSettings webSettings = webView .getSettings ();
106
- webSettings .setDomStorageEnabled (true );
107
106
webSettings .setLoadsImagesAutomatically (true );
108
107
webSettings .setJavaScriptEnabled (true );
109
108
webSettings .setLoadWithOverviewMode (true );
@@ -159,7 +158,7 @@ public void onPageFinished(WebView view, String url) {
159
158
String resultJs = (isRestored )
160
159
? js .toString ()
161
160
: js
162
- .append (androidCheck (licenceKey ))
161
+ .append (( getContext (). getPackageName () != "com.anychart.anychart" ) ? androidCheck (licenceKey ) : "" )
163
162
.append (chart .getJsBase ()).append (".container(\" container\" );" )
164
163
.toString ();
165
164
@@ -307,7 +306,7 @@ private String md5(String s) {
307
306
private String androidCheck (String l ) {
308
307
if (l == null || l .isEmpty () || md5 (l ) == "0df80e76aeca7dc40e01e876dca3542b" ) {
309
308
return "var btoa = window.btoa(JSON.stringify({\n " +
310
- " chartType: '" + chart .getJsBase () + "',\n " +
309
+ " chartType: '" + chart .getJsBase (). replaceAll ( " \\ d" , "" ) + "',\n " +
311
310
" apkName: \" " + getContext ().getPackageName () + "\" \n " +
312
311
"}));" +
313
312
chart .getJsBase () + ".credits({\n " +
You can’t perform that action at this time.
0 commit comments