Tweaked pro constructor

This commit is contained in:
Max Lynch 2018-01-25 11:44:58 -06:00
parent f419db5d80
commit 954bd876de

View File

@ -137,8 +137,12 @@ export class Pro extends IonicNativePlugin {
*/ */
@CordovaCheck({ sync: true }) @CordovaCheck({ sync: true })
deploy(): ProDeploy { deploy(): ProDeploy {
if (this._deploy) return this._deploy; if (this._deploy) {
else return this._deploy = new ProDeploy(Pro.getPlugin().deploy); return this._deploy;
} else {
this._deploy = new ProDeploy(Pro.getPlugin().deploy);
return this._deploy;
}
} }
/** /**