()
| 128 | } |
| 129 | |
| 130 | afterRender () { |
| 131 | super.afterRender() |
| 132 | // TODO: does this work? |
| 133 | this.playSound('game-menu-open') |
| 134 | if (this.basicProduct && this.subModalContinue) { |
| 135 | if (this.subModalContinue === 'monthly') { |
| 136 | this.subModalContinue = null |
| 137 | return this.onClickPurchaseButton() |
| 138 | } else if (this.subModalContinue === 'lifetime') { |
| 139 | this.subModalContinue = null |
| 140 | // Only automatically open lifetime payment dialog for Stripe, not PayPal |
| 141 | if (!this.basicProduct.isRegionalSubscription()) { |
| 142 | return this.onClickStripeLifetimeButton() |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | stripeOptions (options) { |
| 149 | return _.assign({ |
nothing calls this directly
no test coverage detected