mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
fix: fix callback order
This commit is contained in:
parent
9766aab59f
commit
5944bd13d3
@ -75,8 +75,7 @@ export class DeviceOrientation {
|
|||||||
* @returns {Promise<CompassHeading>}
|
* @returns {Promise<CompassHeading>}
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
successIndex: 0,
|
callbackOrder: 'reverse'
|
||||||
errorIndex: 1
|
|
||||||
})
|
})
|
||||||
static watchHeading(options? : CompassOptions) : Promise<CompassHeading> {
|
static watchHeading(options? : CompassOptions) : Promise<CompassHeading> {
|
||||||
// This Promise is replaced by one from the @Cordova decorator that wraps
|
// This Promise is replaced by one from the @Cordova decorator that wraps
|
||||||
|
Loading…
Reference in New Issue
Block a user