--
This commit is contained in:
parent
9a78c731de
commit
e7ce7bca2d
@ -346,9 +346,6 @@ public class JcPrinter extends CordovaPlugin {
|
||||
private void connectPrinter(JSONArray args, CallbackContext callbackContext) throws JSONException {
|
||||
JSONObject obj = args.getJSONObject(0);
|
||||
String address = obj.getString("address");
|
||||
if(Util.isConnection() == 0){
|
||||
Util.close();
|
||||
}
|
||||
int connectResult = Util.openPrinter(address);
|
||||
cordova.getActivity().runOnUiThread(() -> {
|
||||
String hint = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user