feat(plugin): support enterprise extension (#861)
This commit is contained in:
@@ -180,8 +180,7 @@ const electronAPI = {
|
||||
'openclaw:cli-installed',
|
||||
];
|
||||
|
||||
if (validChannels.includes(channel)) {
|
||||
// Wrap the callback to strip the event
|
||||
if (validChannels.includes(channel) || channel.startsWith('ext:')) {
|
||||
const subscription = (_event: Electron.IpcRendererEvent, ...args: unknown[]) => {
|
||||
callback(...args);
|
||||
};
|
||||
@@ -228,7 +227,7 @@ const electronAPI = {
|
||||
'oauth:error',
|
||||
];
|
||||
|
||||
if (validChannels.includes(channel)) {
|
||||
if (validChannels.includes(channel) || channel.startsWith('ext:')) {
|
||||
ipcRenderer.once(channel, (_event, ...args) => callback(...args));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user