Skip to content

Commit 6d642f8

Browse files
committed
MC-18783: IE11 Checkout Error; Indefinite loading; Cant complete check out
- overridden window clearTimeout function should take a parameter
1 parent 15ee950 commit 6d642f8

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/PaypalCaptcha/view/frontend/web/js/view/payment

1 file changed

+4
-2
lines changed

app/code/Magento/PaypalCaptcha/view/frontend/web/js/view/payment/list-mixin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ define([
3434

3535
/**
3636
* Overrides default window.clearTimeout() to catch errors from iframe and reload Captcha.
37+
*
38+
* @param {Number} timeoutID
3739
*/
38-
clearTimeout: function () {
40+
clearTimeout: function (timeoutID) {
3941
var captcha = captchaList.getCaptchaByFormId(this.formId);
4042

4143
if (captcha !== null) {
4244
captcha.refresh();
4345
}
44-
clearTimeout();
46+
clearTimeout(timeoutID);
4547
}
4648
};
4749

0 commit comments

Comments
 (0)