mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-24 14:11:18 +08:00
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);
|
cordovaWarn(this.name, null);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
let pluginObj: any = this;
|
||||||
let pluginInstance = getPlugin(this.pluginRef);
|
let pluginInstance = getPlugin(pluginObj.pluginRef);
|
||||||
if (!pluginInstance) {
|
if (!pluginInstance) {
|
||||||
pluginWarn(this, key);
|
pluginWarn(this, key);
|
||||||
return { };
|
return { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user