2017-05-04 08:11:15 -04:00
|
|
|
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());
|
2017-05-04 08:11:15 -04:00
|
|
|
mediator.fetch();
|
|
|
|
|
2017-12-03 21:43:10 -05:00
|
|
|
mountSidebar(mediator);
|
2017-05-05 14:23:31 -04:00
|
|
|
}
|
2017-05-04 08:11:15 -04:00
|
|
|
|
2017-05-05 14:23:31 -04:00
|
|
|
document.addEventListener('DOMContentLoaded', domContentLoaded);
|
|
|
|
|
|
|
|
export default domContentLoaded;
|