mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-06-08 00:00:19 +08:00
🧈
This commit is contained in:
Vendored
+2
@@ -1,5 +1,7 @@
|
||||
export * from './plugins/actionsheet';
|
||||
export * from './plugins/ble';
|
||||
export * from './plugins/camera';
|
||||
export * from './plugins/contacts';
|
||||
export * from './plugins/device';
|
||||
export * from './plugins/statusbar';
|
||||
export * from './plugins/toast';
|
||||
|
||||
Vendored
+2
@@ -3,7 +3,9 @@ function __export(m) {
|
||||
}
|
||||
var DEVICE_READY_TIMEOUT = 2000;
|
||||
__export(require('./plugins/actionsheet'));
|
||||
__export(require('./plugins/ble'));
|
||||
__export(require('./plugins/camera'));
|
||||
__export(require('./plugins/contacts'));
|
||||
__export(require('./plugins/device'));
|
||||
__export(require('./plugins/statusbar'));
|
||||
__export(require('./plugins/toast'));
|
||||
|
||||
Vendored
+2
-2
@@ -45,8 +45,8 @@ exports.wrap = function (pluginObj, methodName, opts) {
|
||||
args[1] = reject;
|
||||
}
|
||||
else if (typeof opts.successIndex !== 'undefined' || typeof opts.errorIndex !== 'undefined') {
|
||||
args[opts.successIndex] = resolve;
|
||||
args[opts.errorIndex] = reject;
|
||||
args.splice(opts.successIndex, resolve);
|
||||
args.splice(opts.errorIndex, reject);
|
||||
}
|
||||
else {
|
||||
args.push(resolve);
|
||||
|
||||
Reference in New Issue
Block a user