gitlab-org--gitlab-foss/app/assets/javascripts/sidebar/sidebar_bundle.js

14 lines
344 B
JavaScript
Raw Normal View History

import Mediator from './sidebar_mediator';
2017-12-07 12:37:33 -05:00
import { mountSidebar, getSidebarOptions } from './mount_sidebar';
2017-10-31 12:15:03 -04:00
2017-05-05 14:23:31 -04:00
function domContentLoaded() {
2017-12-07 12:37:33 -05:00
const mediator = new Mediator(getSidebarOptions());
mediator.fetch();
mountSidebar(mediator);
2017-05-05 14:23:31 -04:00
}
2017-05-05 14:23:31 -04:00
document.addEventListener('DOMContentLoaded', domContentLoaded);
export default domContentLoaded;