mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-22 21:12:50 +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) {
|
export function CordovaProperty(target: any, key: string) {
|
||||||
const exists = () => {
|
const exists = () => {
|
||||||
let pluginInstance = getPlugin(target.pluginRef);
|
let pluginInstance = getPlugin(target.pluginRef);
|
||||||
if (!pluginInstance || pluginInstance[key] === 'undefined') {
|
if (!pluginInstance || typeof pluginInstance[key] === 'undefined') {
|
||||||
pluginWarn(target, key);
|
pluginWarn(target, key);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user