fix(secure-storage): method is inaccessible when device is not secure #3322

This commit is contained in:
gine 2020-02-22 12:25:59 +01:00 committed by GitHub
parent 45218102f3
commit 300f75ef92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ export class SecureStorage extends IonicNativePlugin {
return getPromise<SecureStorageObject>((res: Function, rej: Function) => {
const instance = new (SecureStorage.getPlugin())(
() => res(new SecureStorageObject(instance)),
rej,
() => rej(new SecureStorageObject(instance)),
store
);
});