), so it
// clears what the script wrote, and keeps clearing it on resize for the same reason the
// script keeps writing it.
(function () {
function releaseMegamenu() {
document.querySelectorAll('.main-nav .megamenu').forEach(function (panel) {
panel.style.removeProperty('margin-left');
panel.style.removeProperty('width');
});
}
releaseMegamenu();
window.addEventListener('resize', releaseMegamenu);
window.addEventListener('load', releaseMegamenu);
})();