mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-22 04:51:24 +08:00
fix(core): fix plugin check
This commit is contained in:
parent
cb293639bc
commit
da7a3707fa
@ -409,7 +409,7 @@ export function CordovaInstance(opts: any = {}) {
|
||||
export function CordovaProperty(target: any, key: string) {
|
||||
const exists = () => {
|
||||
let pluginInstance = getPlugin(target.pluginRef);
|
||||
if (!pluginInstance || pluginInstance[key] === 'undefined') {
|
||||
if (!pluginInstance || typeof pluginInstance[key] === 'undefined') {
|
||||
pluginWarn(target, key);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user