mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
fix(plugin): return originalMethod return value
This commit is contained in:
parent
ac5c11b768
commit
240f0f87cc
2
dist/plugins/plugin.js
vendored
2
dist/plugins/plugin.js
vendored
@ -181,7 +181,7 @@ function RequiresPlugin(target, key, descriptor) {
|
||||
exports.pluginWarn(this.name, null, this.name);
|
||||
return;
|
||||
}
|
||||
originalMethod.apply(this, args);
|
||||
return originalMethod.apply(this, args);
|
||||
};
|
||||
return descriptor;
|
||||
}
|
||||
|
2
dist/plugins/plugin.js.map
vendored
2
dist/plugins/plugin.js.map
vendored
File diff suppressed because one or more lines are too long
@ -184,7 +184,7 @@ export function RequiresPlugin(target: Function, key: string, descriptor: TypedP
|
||||
pluginWarn(this.name, null, this.name);
|
||||
return;
|
||||
}
|
||||
originalMethod.apply(this, args);
|
||||
return originalMethod.apply(this, args);
|
||||
}
|
||||
|
||||
return descriptor;
|
||||
|
Loading…
Reference in New Issue
Block a user