feat: Introduce multi-platform architecture for Electron and Web clients with shared UI components, Convex backend for messaging, and integrated search functionality.
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
This commit is contained in:
@@ -42,6 +42,12 @@ contextBridge.exposeInMainWorld('sessionPersistence', {
|
||||
clear: () => ipcRenderer.invoke('clear-session'),
|
||||
});
|
||||
|
||||
contextBridge.exposeInMainWorld('searchStorage', {
|
||||
load: (userId) => ipcRenderer.invoke('search-db-load', userId),
|
||||
save: (userId, data) => ipcRenderer.invoke('search-db-save', userId, data),
|
||||
clear: (userId) => ipcRenderer.invoke('search-db-clear', userId),
|
||||
});
|
||||
|
||||
contextBridge.exposeInMainWorld('idleAPI', {
|
||||
onIdleStateChanged: (callback) => ipcRenderer.on('idle-state-changed', (_event, data) => callback(data)),
|
||||
removeIdleStateListener: () => ipcRenderer.removeAllListeners('idle-state-changed'),
|
||||
|
||||
Reference in New Issue
Block a user