Skip to content

Commit

Permalink
Switched WebChromeClient onConsoleMessage to use debug log messages i…
Browse files Browse the repository at this point in the history
…nstead of error
  • Loading branch information
aforcier committed Apr 3, 2015
1 parent 10b5506 commit 32591e0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ public void onReceivedError(WebView view, int errorCode, String description, Str
});
mWebView.setWebChromeClient(new WebChromeClient() {
public boolean onConsoleMessage(ConsoleMessage cm) {
AppLog.e(T.EDITOR, cm.message() + " -- From line " + cm.lineNumber() + " of " + cm.sourceId());
AppLog.d(T.EDITOR, cm.message() + " -- From line " + cm.lineNumber() + " of " + cm.sourceId());
return true;
}

@Override
public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
AppLog.e(T.EDITOR, message);
AppLog.d(T.EDITOR, message);
return true;
}

@Override
public void onConsoleMessage(String message, int lineNumber, String sourceId) {
AppLog.e(T.EDITOR, message + " -- from line " + lineNumber + " of " + sourceId);
AppLog.d(T.EDITOR, message + " -- from line " + lineNumber + " of " + sourceId);
}
});
String htmlEditor = getHtmlEditor();
Expand Down

0 comments on commit 32591e0

Please sign in to comment.