fix(secure-storage): method is inaccessible when device is not secure #3322
This commit is contained in:
parent
45218102f3
commit
300f75ef92
@ -141,7 +141,7 @@ export class SecureStorage extends IonicNativePlugin {
|
|||||||
return getPromise<SecureStorageObject>((res: Function, rej: Function) => {
|
return getPromise<SecureStorageObject>((res: Function, rej: Function) => {
|
||||||
const instance = new (SecureStorage.getPlugin())(
|
const instance = new (SecureStorage.getPlugin())(
|
||||||
() => res(new SecureStorageObject(instance)),
|
() => res(new SecureStorageObject(instance)),
|
||||||
rej,
|
() => rej(new SecureStorageObject(instance)),
|
||||||
store
|
store
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user