From c752be45b2ac1de1bdbd4087badc4cbdda1a2aad Mon Sep 17 00:00:00 2001 From: V Date: Fri, 25 Aug 2023 14:57:04 +0200 Subject: [PATCH] fix(security - ipc): do not expose sender --- src/VencordNative.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VencordNative.ts b/src/VencordNative.ts index 58f553cf..4f8638bc 100644 --- a/src/VencordNative.ts +++ b/src/VencordNative.ts @@ -48,7 +48,7 @@ export default { }, addThemeChangeListener(cb: () => void) { - ipcRenderer.on(IpcEvents.THEME_UPDATE, cb); + ipcRenderer.on(IpcEvents.THEME_UPDATE, () => cb()); }, openFile: () => invoke(IpcEvents.OPEN_QUICKCSS),