mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-27 19:15:26 +03:00
5 lines
142 B
JavaScript
5 lines
142 B
JavaScript
|
export const dispatchCustomEvent = ({ name, detail }) => {
|
||
|
let event = new CustomEvent(name, { detail });
|
||
|
window.dispatchEvent(event);
|
||
|
};
|