aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-08-25 14:57:04 +0200
committerV <vendicated@riseup.net>2023-08-25 14:57:04 +0200
commitc752be45b2ac1de1bdbd4087badc4cbdda1a2aad (patch)
treefce850de6bf8607ac36ad244529d3e3cfafb8c68 /src
parent07c1f5eed1a94101c91dce57c1caf86722d7c42c (diff)
downloadVencord-c752be45b2ac1de1bdbd4087badc4cbdda1a2aad.tar.gz
Vencord-c752be45b2ac1de1bdbd4087badc4cbdda1a2aad.tar.bz2
Vencord-c752be45b2ac1de1bdbd4087badc4cbdda1a2aad.zip
fix(security - ipc): do not expose sender
Diffstat (limited to 'src')
-rw-r--r--src/VencordNative.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VencordNative.ts b/src/VencordNative.ts
index 58f553c..4f8638b 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<void>(IpcEvents.OPEN_QUICKCSS),