feishin/src/main/preload/ipc.ts

10 lines
184 B
TypeScript
Raw Normal View History

2022-12-19 15:59:14 -08:00
import { ipcRenderer } from 'electron';
const removeAllListeners = (channel: string) => {
ipcRenderer.removeAllListeners(channel);
};
export const ipc = {
removeAllListeners,
};