feat(IPC): expose get-monospace-settings + set-monospace-settings to renderer

Renderer already calls window.electronAPI.invoke('get-monospace-settings')
to apply body classes; this wires up the channel allowlist and main-process
handlers so the IPC actually returns the active monospace settings and
persists updates.
This commit is contained in:
2026-08-23 19:31:33 +05:30
parent cd3385ec69
commit 58868eece0
2 changed files with 28 additions and 0 deletions
+4
View File
@@ -141,6 +141,10 @@ const ALLOWED_SEND_CHANNELS = [
// Plugin settings
'plugin-settings:get',
'plugin-settings:set',
// Monospace font settings
'get-monospace-settings',
'set-monospace-settings',
];
const ALLOWED_RECEIVE_CHANNELS = [