2017-08-17 22:00:37 +05:30
|
|
|
import Mediator from './sidebar_mediator';
|
2018-03-17 18:26:18 +05:30
|
|
|
import { mountSidebar, getSidebarOptions } from './mount_sidebar';
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
function domContentLoaded() {
|
2018-03-17 18:26:18 +05:30
|
|
|
const mediator = new Mediator(getSidebarOptions());
|
2017-08-17 22:00:37 +05:30
|
|
|
mediator.fetch();
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
mountSidebar(mediator);
|
2017-08-17 22:00:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', domContentLoaded);
|
|
|
|
|
|
|
|
export default domContentLoaded;
|