Merge pull request #5403 from mempool/nymkappa/square-loading

[square] retry web sdk faster
This commit is contained in:
wiz 2024-08-02 17:24:00 -04:00 committed by GitHub
commit 9f559248cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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