Skip to content

Commit a8e8d48

Browse files
authored
Merge pull request #2123 from angelleye/PFW-1952
PFW-1952 - Console error handled
2 parents a5f61a2 + 23d8eed commit a8e8d48

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ppcp-gateway/checkout-block/ppcp-checkout.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,12 @@ const ppcp_uniqueEvents = new Set([
252252

253253
ppcp_uniqueEvents.forEach(function (action) {
254254
addAction(action, "c", function () {
255-
jQuery("#angelleye_ppcp_checkout").block({
256-
message: null,
257-
overlayCSS: {background: "#fff", opacity: 0.6},
258-
});
255+
if (typeof jQuery.fn.block === "function") {
256+
jQuery("#angelleye_ppcp_checkout").block({
257+
message: null,
258+
overlayCSS: {background: "#fff", opacity: 0.6},
259+
});
260+
}
259261
setTimeout(function () {
260262
jQuery(document.body).trigger("ppcp_checkout_updated");
261263
}, 2000);

0 commit comments

Comments
 (0)