debian-mirror-gitlab/app/assets/javascripts/sidebar/sidebar_bundle.js
2018-03-17 18:26:18 +05:30

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;