update IITC_Webview to allow remote debugging from Chrome

This commit is contained in:
Terence D. Honles 2016-09-27 01:07:14 +03:00
parent a6f6d5268b
commit 9bd70f67a9

View File

@ -59,6 +59,7 @@ public class IITC_WebView extends WebView {
mSettings.setDatabasePath(getContext().getApplicationInfo().dataDir + "/databases/"); mSettings.setDatabasePath(getContext().getApplicationInfo().dataDir + "/databases/");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
setWebContentsDebuggingEnabled(true);
mJsInterface = new IITC_JSInterfaceKitkat(mIitc); mJsInterface = new IITC_JSInterfaceKitkat(mIitc);
} else { } else {
mJsInterface = new IITC_JSInterface(mIitc); mJsInterface = new IITC_JSInterface(mIitc);