mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
feat(plugin): add sync option to @Cordova for sync functions
This commit is contained in:
Vendored
+4
-1
@@ -114,7 +114,10 @@ exports.wrap = function (pluginObj, methodName, opts) {
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i - 0] = arguments[_i];
|
||||
}
|
||||
if (opts.observable) {
|
||||
if (opts.sync) {
|
||||
return callCordovaPlugin(pluginObj, methodName, args, opts);
|
||||
}
|
||||
else if (opts.observable) {
|
||||
return wrapObservable(pluginObj, methodName, args, opts);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user