fix(security - ipc): do not expose sender
This commit is contained in:
parent
07c1f5eed1
commit
c752be45b2
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user