mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 23:03:19 +08:00
fix plugin
This commit is contained in:
parent
60db10c1d3
commit
39f1971471
@ -10,16 +10,16 @@ import { Plugin, Cordova } from './plugin';
|
|||||||
* import { UniqueDeviceID } from 'ionic-native';
|
* import { UniqueDeviceID } from 'ionic-native';
|
||||||
*
|
*
|
||||||
* UniqueDeviceID.get()
|
* UniqueDeviceID.get()
|
||||||
* .then((uuid: any) => doSomething(uuid))
|
* .then((uuid: any) => console.log(uuid))
|
||||||
* .catch((error: any) => console.log(error));
|
* .catch((error: any) => console.log(error));
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
pluginName: 'UniqueDeviceID',
|
pluginName: 'UniqueDeviceID',
|
||||||
plugin: 'cordova-plugin-uniquedeviceid', // npm package name, example: cordova-plugin-camera
|
plugin: 'cordova-plugin-uniquedeviceid',
|
||||||
pluginRef: 'window.plugins.uniqueDeviceID', // the variable reference to call the plugin, example: navigator.geolocation
|
pluginRef: 'window.plugins.uniqueDeviceID',
|
||||||
repo: 'https://github.com/Paldom/UniqueDeviceID' // the github repository URL for the plugin
|
repo: 'https://github.com/Paldom/UniqueDeviceID'
|
||||||
})
|
})
|
||||||
export class UniqueDeviceID {
|
export class UniqueDeviceID {
|
||||||
|
|
||||||
@ -28,8 +28,6 @@ export class UniqueDeviceID {
|
|||||||
* @return {Promise<string>} Returns a promise that resolves when something happens
|
* @return {Promise<string>} Returns a promise that resolves when something happens
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static get(): Promise<string> {
|
static get(): Promise<string> { return; }
|
||||||
return; // We add return; here to avoid any IDE / Compiler errors
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user