override default JS dialog handling (which is broken in Lollipop)

should fix #970
This commit is contained in:
fkloft
2015-04-09 23:31:37 +02:00
parent 1171651991
commit 9092a2a038
6 changed files with 252 additions and 2 deletions

View File

@@ -837,7 +837,7 @@ public class IITC_Mobile extends Activity
final String js = "(function(obj){var result;" +
"console.log('>>> ' + obj.code);" +
"try{result=eval(obj.code);}catch(e){if(e.stack) console.error(e.stack);throw e;}" +
"if(result!==undefined) console.log(result.toString());" +
"if(result!==undefined) console.log(result===null?null:result.toString());" +
"})(" + obj.toString() + ");";
mIitcWebView.loadJS(js);