mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +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>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 0,
|
||||
errorIndex: 1
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
static watchHeading(options? : CompassOptions) : Promise<CompassHeading> {
|
||||
// This Promise is replaced by one from the @Cordova decorator that wraps
|
||||
|
Loading…
Reference in New Issue
Block a user