feat(#305): Refactor ble related conditions

This commit is contained in:
Tilak Puli
2023-01-19 18:30:07 +05:30
parent 623be3aa9f
commit 5956943b69
5 changed files with 13 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ type ShareProtocol = OpenIDBLEShare | IdpassSmartshareType;
let ShareLib: ShareProtocol;
export const isBLEEnabled = USE_BLE_SHARE === 'true';
export const isGoogleNearbyEnabled = !isBLEEnabled;
if (isBLEEnabled) {
ShareLib = Openid4vpBle;