mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
minor refractor
This commit is contained in:
parent
df326f773f
commit
971ee4adda
@ -1,7 +1,5 @@
|
|||||||
import { CordovaInstance, Plugin } from './plugin';
|
import { CordovaInstance, Plugin } from './plugin';
|
||||||
|
|
||||||
declare var cordova: any;
|
declare var cordova: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Secure Storage
|
* @name Secure Storage
|
||||||
* @description
|
* @description
|
||||||
@ -17,7 +15,7 @@ declare var cordova: any;
|
|||||||
* let secureStorage: SecureStorage = new SecureStorage();
|
* let secureStorage: SecureStorage = new SecureStorage();
|
||||||
* secureStorage.create('my_store_name')
|
* secureStorage.create('my_store_name')
|
||||||
* .then(
|
* .then(
|
||||||
* () => console.log('Success'),
|
* () => console.log('Storage is ready!'),
|
||||||
* error => console.log(error);
|
* error => console.log(error);
|
||||||
* );
|
* );
|
||||||
*
|
*
|
||||||
@ -50,7 +48,7 @@ export class SecureStorage {
|
|||||||
|
|
||||||
private _objectInstance: any;
|
private _objectInstance: any;
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a namespaced storage.
|
* Creates a namespaced storage.
|
||||||
|
Loading…
Reference in New Issue
Block a user