Using window.innerWidth instead of document.body.clientWidth. Reason: CSS media queries include the scrollbar in measuring the width of the document, whereas document.body.clientWidth does not. This creates issues with matching up media query styles with Macy breakpoints. window.innerWidth, however, does include the scrollbar and will fix this issue.
Using window.innerWidth instead of document.body.clientWidth. Reason: CSS media queries include the scrollbar in measuring the width of the document, whereas document.body.clientWidth does not. This creates issues with matching up media query styles with Macy breakpoints. window.innerWidth, however, does include the scrollbar and will fix this issue.