Skip to content

Commit

Permalink
RWD: bugfix with currency/language switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Oct 20, 2024
1 parent a6fbe95 commit f2029b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/skin/frontend/rwd/default/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,12 @@ document.addEventListener('DOMContentLoaded', () => {

if (mq.matches) {
const targetContainer = document.querySelector('.page-header-container .store-language-container');
targetContainer.prepend(currencySwitcher);
targetContainer.prepend(formLanguage);
if (currencySwitcher) targetContainer.prepend(currencySwitcher);
if (formLanguage) targetContainer.prepend(formLanguage);
} else {
const targetContainer = document.querySelector('.header-language-container .store-language-container');
targetContainer.prepend(currencySwitcher);
targetContainer.prepend(formLanguage);
if (currencySwitcher) targetContainer.prepend(currencySwitcher);
if (formLanguage) targetContainer.prepend(formLanguage);
}
};
let maxWidthLargeMediaQuery = window.matchMedia('(max-width: ' + bp.large + 'px)');
Expand Down

0 comments on commit f2029b9

Please sign in to comment.