UNPKG

use-app-events

Version:

Create, trigger and listen for custom events in vanilla JavaScript and React.

8 lines (7 loc) 134 B
import { broadcastChannel as s } from "./init.js"; const e = (a) => { s && s.postMessage(a); }; export { e as broadcastMessage };