refactor(plugin): get rid of TS error in IDE
This commit is contained in:
parent
4a8650e45e
commit
d624a37f55
@ -306,8 +306,8 @@ export function CordovaProperty(target: Function, key: string, descriptor: Typed
|
||||
cordovaWarn(this.name, null);
|
||||
return {};
|
||||
}
|
||||
|
||||
let pluginInstance = getPlugin(this.pluginRef);
|
||||
let pluginObj: any = this;
|
||||
let pluginInstance = getPlugin(pluginObj.pluginRef);
|
||||
if (!pluginInstance) {
|
||||
pluginWarn(this, key);
|
||||
return { };
|
||||
|
Loading…
Reference in New Issue
Block a user