Skip to content
Snippets Groups Projects
Commit ce11b9d5 authored by Chris Lawton's avatar Chris Lawton
Browse files

remove the no-js class if js is enabled

parent 65c8a2b2
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,9 @@ import Search from './components/search'; ...@@ -4,6 +4,9 @@ import Search from './components/search';
import MobileSearch from './components/mobile-search'; import MobileSearch from './components/mobile-search';
$(function () { $(function () {
// remove no-js class if js is enabled
document.querySelector('html').classList.remove('no-js');
$(MobileMenu.selector()).each((index, el) => { $(MobileMenu.selector()).each((index, el) => {
new MobileMenu($(el), $('.js-mobile-menu-close'), $('.header__menus--mobile'), $('.header__search')); new MobileMenu($(el), $('.js-mobile-menu-close'), $('.header__menus--mobile'), $('.header__search'));
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment