aboutsummaryrefslogtreecommitdiff
path: root/src/ipcMain/index.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-01-22 04:29:58 +0100
committerVendicated <vendicated@riseup.net>2023-01-22 04:29:58 +0100
commit68e80c4d4ce162275f68a9a8099211626f1fe4ad (patch)
tree137740abaf8e01f45629a4ce7a0c43b01de407ff /src/ipcMain/index.ts
parentb4f98e5066aa41f986865f4b598593afc9161d3b (diff)
downloadVencord-68e80c4d4ce162275f68a9a8099211626f1fe4ad.tar.gz
Vencord-68e80c4d4ce162275f68a9a8099211626f1fe4ad.tar.bz2
Vencord-68e80c4d4ce162275f68a9a8099211626f1fe4ad.zip
Fix small QuickCss bug
Diffstat (limited to 'src/ipcMain/index.ts')
-rw-r--r--src/ipcMain/index.ts2
1 files changed, 1 insertions, 1 deletions
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));
});