diff --git a/themes/finc/js/cart-finc.js b/themes/finc/js/cart-finc.js index fc1ddd56c9e64d2eb7eee543bb57cd734a47aa44..0fbaf1015f44cd429d87a2f1db9a0f5745c5c320 100644 --- a/themes/finc/js/cart-finc.js +++ b/themes/finc/js/cart-finc.js @@ -1,7 +1,7 @@ /* #18034 - inform screen reader about changes, eventually intregrate by PR into bootstrap cart.js - RL */ $(document).ready(function() { var cart = document.getElementById("cartSummary"); - if (cart !== undefined) { + if (cart != null) { cart.setAttribute("aria-live", "polite"); cart.setAttribute("aria-atomic", "true"); }