We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecaaf44 commit 2bbe084Copy full SHA for 2bbe084
lib/services/device/device-install-app-service.ts
@@ -69,9 +69,9 @@ export class DeviceInstallAppService {
69
})
70
} else {
71
//we did not find corresponding abi let's try universal
72
- const index = packages.findIndex(p => p.packageName.indexOf('universal') !== -1);
73
- if (index !== -1) {
74
- packageFile = packages[index].packageName;
+ const universalPackage = packages.find(p => p.packageName.includes('universal'));
+ if (universalPackage) {
+ packageFile = universalPackage.packageName;
75
}
76
77
0 commit comments