This commit is contained in:
范大德 2023-10-10 16:08:24 +08:00
parent 9a78c731de
commit e7ce7bca2d

View File

@ -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 = "";