Skip to content

Commit

Permalink
updated donate banner JS to account for PNI wrapper if needed (#13306)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfmiranda authored Dec 11, 2024
1 parent af80b08 commit 059df85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/js/donate-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const DonateBanner = {
? undefined
: banner?.querySelector(`a.banner-close`);
const ctaButton = banner?.querySelector(`#banner-cta-button`);
const wrapper = document.querySelector(`.wrapper`) || document.querySelector(`.primary-nav-container-wrapper`);


// skip the banner if it got dismissed by the user today already
Expand Down Expand Up @@ -45,7 +46,7 @@ const DonateBanner = {
easing: "ease-in",
};

document.querySelector(`.wrapper`).animate(
wrapper.animate(
[
// keyframes
{
Expand Down

0 comments on commit 059df85

Please sign in to comment.