mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
feat(#305): Extract use ble enabled to a constant instead of env check
This commit is contained in:
@@ -9,7 +9,9 @@ const { Openid4vpBle } = OpenIdBle;
|
||||
type ShareProtocol = OpenIDBLEShare | IdpassSmartshareType;
|
||||
let ShareLib: ShareProtocol;
|
||||
|
||||
if (USE_BLE_SHARE === 'true') {
|
||||
export const isBLEEnabled = USE_BLE_SHARE === 'true';
|
||||
|
||||
if (isBLEEnabled) {
|
||||
ShareLib = Openid4vpBle;
|
||||
} else {
|
||||
ShareLib = IdpassSmartshare;
|
||||
|
||||
Reference in New Issue
Block a user