Replace "beforeload" with BEFORELOAD (#524)

Improve code formatting
This commit is contained in:
Lorenzo B 2019-12-30 10:47:37 +01:00 committed by Niklas Merz
parent 9a15737577
commit 416b05c1e5

View File

@ -1325,7 +1325,7 @@ public class InAppBrowser extends CordovaPlugin {
private boolean sendBeforeLoad(String url, String method) { private boolean sendBeforeLoad(String url, String method) {
try { try {
JSONObject obj = new JSONObject(); JSONObject obj = new JSONObject();
obj.put("type", "beforeload"); obj.put("type", BEFORELOAD);
obj.put("url", url); obj.put("url", url);
if(method != null) { if(method != null) {
obj.put("method", method); obj.put("method", method);
@ -1406,8 +1406,6 @@ public class InAppBrowser extends CordovaPlugin {
} }
} }
public void onPageFinished(WebView view, String url) { public void onPageFinished(WebView view, String url) {
super.onPageFinished(view, url); super.onPageFinished(view, url);