13 lines
344 B
JavaScript
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;
|