@virtualstate/app-history
Version:
Native JavaScript [app-history](https://github.com/WICG/app-history) implementation
12 lines • 494 B
JavaScript
import { EventTarget } from "./event-target.js";
const globalEventTarget = new EventTarget();
export function dispatchEvent(event) {
return globalEventTarget.dispatchEvent(event);
}
export function addEventListener(type, callback, options) {
return globalEventTarget.addEventListener(type, callback, options);
}
export function removeEventListener(type, callback, options) {
return globalEventTarget.removeEventListener(type, callback, options);
}
//# sourceMappingURL=global.js.map