Closed dmengelt closed 1 year ago
Without returning from the mount() function if there was an error loading pay.js we continue to call this.updateElement(); this will result in trying to reference the undefined google object:
mount()
pay.js
this.updateElement();
google
https://github.com/google-pay/google-pay-button/blob/812855408177dfa7a022849566bdd298ed477231/src/lib/button-manager.ts#L231
fixes #219
LGTM FYI @socsieng
Without returning from the
mount()
function if there was an error loadingpay.js
we continue to callthis.updateElement();
this will result in trying to reference the undefinedgoogle
object:https://github.com/google-pay/google-pay-button/blob/812855408177dfa7a022849566bdd298ed477231/src/lib/button-manager.ts#L231
fixes #219