From 68e80c4d4ce162275f68a9a8099211626f1fe4ad Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 22 Jan 2023 04:29:58 +0100 Subject: Fix small QuickCss bug --- src/ipcMain/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipcMain') diff --git a/src/ipcMain/index.ts b/src/ipcMain/index.ts index 3f22b72..0946f5a 100644 --- a/src/ipcMain/index.ts +++ b/src/ipcMain/index.ts @@ -78,7 +78,7 @@ ipcMain.handle(IpcEvents.SET_SETTINGS, (_, s) => { export function initIpc(mainWindow: BrowserWindow) { open(QUICKCSS_PATH, "a+").then(fd => { fd.close(); - watch(QUICKCSS_PATH, debounce(async () => { + watch(QUICKCSS_PATH, { persistent: false }, debounce(async () => { mainWindow.webContents.postMessage(IpcEvents.QUICK_CSS_UPDATE, await readCss()); }, 50)); }); -- cgit