debian-mirror-gitlab/app/assets/javascripts/sidebar/event_hub.js
2020-11-24 15:15:51 +05:30

8 lines
245 B
JavaScript

import createEventHub from '~/helpers/event_hub_factory';
const eventHub = createEventHub();
// TODO: remove eventHub hack after code splitting refactor
window.emitSidebarEvent = (...args) => eventHub.$emit(...args);
export default eventHub;