Skip to content

Commit

Permalink
remove popup for notificcations they arent needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sartxi committed Oct 2, 2024
1 parent bcba476 commit b1317b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/section-metadata/sticky-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function promoIntersectObserve(el, stickySectionEl, options = {}) {
function handleStickyPromobar(section, delay) {
const main = document.querySelector('main');
section.classList.add('promo-sticky-section', 'hide-sticky-section');
if (section.querySelector('.popup:is(.promobar, .notification)')) section.classList.add('popup');
if (section.querySelector('.popup:is(.promobar)')) section.classList.add('popup');
let stickySectionEl = null;
let hasScrollControl;
if ((section.querySelector(':is(.promobar, .notification:not(.no-hide))').classList.contains('no-delay'))
Expand Down

0 comments on commit b1317b3

Please sign in to comment.