GUI warning when installing extension from deeplink (#2260)

This commit is contained in:
Michael Neale
2025-04-19 10:46:32 +10:00
committed by GitHub
parent 603f49af01
commit 2754a03020
4 changed files with 110 additions and 31 deletions
+2
View File
@@ -49,6 +49,7 @@ type ElectronAPI = {
getBinaryPath: (binaryName: string) => Promise<string>;
readFile: (directory: string) => Promise<FileResponse>;
writeFile: (directory: string, content: string) => Promise<boolean>;
getAllowedExtensions: () => Promise<string[]>;
on: (
channel: string,
callback: (event: Electron.IpcRendererEvent, ...args: unknown[]) => void
@@ -100,6 +101,7 @@ const electronAPI: ElectronAPI = {
readFile: (filePath: string) => ipcRenderer.invoke('read-file', filePath),
writeFile: (filePath: string, content: string) =>
ipcRenderer.invoke('write-file', filePath, content),
getAllowedExtensions: () => ipcRenderer.invoke('get-allowed-extensions'),
on: (
channel: string,
callback: (event: Electron.IpcRendererEvent, ...args: unknown[]) => void