Skip to content

Commit

Permalink
fix(core): fix plugin check
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Jan 22, 2017
1 parent cb29363 commit da7a370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit da7a370

Please sign in to comment.