mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2024-10-07 16:52:15 +08:00
parent
e4bde77bd4
commit
6f0f02bb66
@ -77,9 +77,11 @@ function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Func
|
|||||||
} else {
|
} else {
|
||||||
// Otherwise, let's tack them on to the end of the argument list
|
// Otherwise, let's tack them on to the end of the argument list
|
||||||
// which is 90% of cases
|
// which is 90% of cases
|
||||||
|
if (!opts.sync) {
|
||||||
args.push(resolve);
|
args.push(resolve);
|
||||||
args.push(reject);
|
args.push(reject);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user