We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cff253 commit 7cf0e40Copy full SHA for 7cf0e40
1 file changed
src/plugins/system/android/com/foxdebug/system/System.java
@@ -633,14 +633,14 @@ public void run() {
633
634
private void sendLogToJavaScript(String level, String message) {
635
final String js =
636
- "window.log('" + level + "', " + JSONObject.quote(message) + ");";
+ "window.log(" + JSONObject.quote(level) + ", " + JSONObject.quote(message) + ");";
637
cordova
638
.getActivity()
639
.runOnUiThread(
640
new Runnable() {
641
@Override
642
public void run() {
643
- webView.loadUrl("javascript:" + js);
+ webView.evaluateJavascript(js, null);
644
}
645
646
);
0 commit comments