2020-09-03 05:08:20 -04:00
|
|
|
import createEventHub from '~/helpers/event_hub_factory';
|
2017-05-04 08:11:15 -04:00
|
|
|
|
2020-09-03 05:08:20 -04:00
|
|
|
const eventHub = createEventHub();
|
2017-05-09 09:43:08 -04:00
|
|
|
|
|
|
|
// TODO: remove eventHub hack after code splitting refactor
|
|
|
|
window.emitSidebarEvent = (...args) => eventHub.$emit(...args);
|
|
|
|
|
|
|
|
export default eventHub;
|