fix: deep link installs of extensions (#1333)

This commit is contained in:
Alex Hancock
2025-02-21 15:15:05 -05:00
committed by GitHub
parent 78f450085a
commit ffe020ea0c
5 changed files with 38 additions and 83 deletions
+4
View File
@@ -26,6 +26,7 @@ type ElectronAPI = {
channel: string,
callback: (event: Electron.IpcRendererEvent, ...args: any[]) => void
) => void;
emit: (channel: string, ...args: any[]) => void;
};
type AppConfigAPI = {
@@ -55,6 +56,9 @@ const electronAPI: ElectronAPI = {
off: (channel: string, callback: (event: Electron.IpcRendererEvent, ...args: any[]) => void) => {
ipcRenderer.off(channel, callback);
},
emit: (channel: string, ...args: any[]) => {
ipcRenderer.emit(channel, ...args);
},
};
const appConfigAPI: AppConfigAPI = {