mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-21 17:36:27 +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);
|
exports.pluginWarn(this.name, null, this.name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
originalMethod.apply(this, args);
|
return originalMethod.apply(this, args);
|
||||||
};
|
};
|
||||||
return descriptor;
|
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);
|
pluginWarn(this.name, null, this.name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
originalMethod.apply(this, args);
|
return originalMethod.apply(this, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
return descriptor;
|
return descriptor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user