mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix removed redundant code
This commit is contained in:
parent
84e4c2c40a
commit
d86a1dd050
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue