Files
yt-dlp-webui/frontend/src/features/core/events.ts
2023-01-12 12:05:53 +01:00

10 lines
255 B
TypeScript

export function on(eventType: string, listener: any) {
document.addEventListener(eventType, listener)
}
export const serverStates = {
PROC_DOWNLOAD: 'download',
PROC_MERGING: 'merging',
PROC_ABORT: 'abort',
PROG_DONE: 'status_done',
}