fix(security - ipc): do not expose sender

This commit is contained in:
V
2023-08-25 14:57:04 +02:00
parent 07c1f5eed1
commit c752be45b2

View File

@ -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),