mirror of https://github.com/axmolengine/axmol.git
add web view javascript support
This commit is contained in:
parent
043acb2fd4
commit
cf0baef7c0
|
@ -6,6 +6,7 @@ import java.net.URI;
|
|||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.webkit.WebChromeClient;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
import android.widget.FrameLayout;
|
||||
|
@ -42,6 +43,7 @@ public class Cocos2dxWebView extends WebView {
|
|||
}
|
||||
|
||||
this.setWebViewClient(new Cocos2dxWebViewClient());
|
||||
this.setWebChromeClient(new WebChromeClient());
|
||||
}
|
||||
|
||||
public void setJavascriptInterfaceScheme(String scheme) {
|
||||
|
|
Loading…
Reference in New Issue