We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5f61a2 + 23d8eed commit a8e8d48Copy full SHA for a8e8d48
ppcp-gateway/checkout-block/ppcp-checkout.js
@@ -252,10 +252,12 @@ const ppcp_uniqueEvents = new Set([
252
253
ppcp_uniqueEvents.forEach(function (action) {
254
addAction(action, "c", function () {
255
- jQuery("#angelleye_ppcp_checkout").block({
256
- message: null,
257
- overlayCSS: {background: "#fff", opacity: 0.6},
258
- });
+ if (typeof jQuery.fn.block === "function") {
+ jQuery("#angelleye_ppcp_checkout").block({
+ message: null,
+ overlayCSS: {background: "#fff", opacity: 0.6},
259
+ });
260
+ }
261
setTimeout(function () {
262
jQuery(document.body).trigger("ppcp_checkout_updated");
263
}, 2000);
0 commit comments