gitlab-org--gitlab-foss/app/assets/javascripts/sidebar/sidebar_bundle.js
2017-12-07 11:37:33 -06:00

13 lines
344 B
JavaScript

import Mediator from './sidebar_mediator';
import { mountSidebar, getSidebarOptions } from './mount_sidebar';
function domContentLoaded() {
const mediator = new Mediator(getSidebarOptions());
mediator.fetch();
mountSidebar(mediator);
}
document.addEventListener('DOMContentLoaded', domContentLoaded);
export default domContentLoaded;