Fix removed redundant code

This commit is contained in:
Pedro Silva 2023-10-17 10:50:38 +01:00
parent 84e4c2c40a
commit d86a1dd050
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -161,8 +161,6 @@ class GooglepayButton {
const { wrapper, ppcpStyle, buttonStyle } = this.contextConfig();
jQuery(wrapper).length
this.waitForWrapper(wrapper, () => {
jQuery(wrapper).addClass('ppcp-button-' + ppcpStyle.shape);
@ -182,7 +180,7 @@ class GooglepayButton {
waitForWrapper(selector, callback, delay = 100, timeout = 2000) {
const startTime = Date.now();
const interval = setInterval(function() {
const interval = setInterval(() => {
const el = document.querySelector(selector);
const timeElapsed = Date.now() - startTime;