[square] fix web sdk retry logic

This commit is contained in:
nymkappa 2024-08-02 22:48:04 +02:00
parent f782693b26
commit c7382a1c6c
No known key found for this signature in database
GPG Key ID: 92358FC85D9645DE

View File

@ -424,7 +424,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
if (!window['Square']) {
console.debug('Square.js failed to load properly. Retrying in 1 second.');
setTimeout(init, 1000);
setTimeout(this.setupSquare.bind(this), 1000);
} else {
init();
}