session-desktop/ts/data/channels.ts

11 lines
356 B
TypeScript

export const channels = {} as Record<string, any>;
// export const addChannel = (id: string, action: any) => {
// (window as any).channels = (window as any).channels || {};
// (window as any).channels[id] = action;
// };
// export const getChannel = (id: string): ((...args: any) => Promise<any>) => {
// return (window as any).channels[id];
// };