wifidirectplugin 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,11 +84,11 @@ public class WifiDirectPlugin extends Plugin {
84
84
  JSONArray devicesJson = new JSONArray();
85
85
  for(WifiP2pDevice device: peerWifiDirDevices) {
86
86
  try {
87
- // if (targetDeviceName != null && !targetDeviceName.isEmpty()) {
88
- // if (!device.deviceName.toUpperCase().contains(targetDeviceName.toUpperCase())) {
89
- // continue;
90
- // }
91
- // }
87
+ if (targetDeviceName != null && !targetDeviceName.isEmpty()) {
88
+ if (!device.deviceName.toUpperCase().contains(targetDeviceName.toUpperCase())) {
89
+ continue;
90
+ }
91
+ }
92
92
  JSONObject deviceJson = new JSONObject();
93
93
  deviceJson.put("deviceName", device.deviceName);
94
94
  deviceJson.put("deviceAddress", device.deviceAddress);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wifidirectplugin",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "HT-Installer Wifi Direct Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",