remove change handler until we integrate update file api

This commit is contained in:
Abhinav 2022-09-09 14:14:45 +05:30
parent eb5012793b
commit dca542e781

View file

@ -100,13 +100,6 @@ export function registerWatcherFunctions(
);
await addFile(await getElectronFile(filePath));
});
ipcRenderer.on('watch-change', async (_, filePath: string) => {
filePath = path.normalize(
filePath.split(path.sep).join(path.posix.sep)
);
await removeFile(filePath);
await addFile(await getElectronFile(filePath));
});
ipcRenderer.on('watch-unlink', async (_, filePath: string) => {
filePath = path.normalize(
filePath.split(path.sep).join(path.posix.sep)