debian-mirror-gitlab/app/assets/javascripts/nav/index.js

13 lines
314 B
JavaScript
Raw Normal View History

2021-06-08 01:23:25 +05:30
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);
};