summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/nav/index.js
blob: 646ce3f0ecf2e63b133736151537f8c086c60999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
export const initTopNav = async () => {
  const el = document.getElementById('js-top-nav');

  if (!el) {
    return;
  }

  // With combined_menu feature flag, there's a benefit to splitting up the import
  const { mountTopNav } = await import(/* webpackChunkName: 'top_nav' */ './mount');

  mountTopNav(el);
};