1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-03-22 21:25:07 +00:00
Files
pocket-id/frontend/src/lib/utils/event-util.ts
2025-06-03 21:12:21 +02:00

7 lines
183 B
TypeScript

export function preventDefault(fn: (event: Event) => void): (event: Event) => void {
return function (this: unknown, event) {
event.preventDefault();
fn.call(this, event);
};
}