chore: handle opening docs and community via external shell
This commit is contained in:
parent
3be5f9b1a5
commit
018c0c73c5
4 changed files with 23 additions and 1 deletions
|
|
@ -130,6 +130,9 @@ const api: ElectronAPI = {
|
|||
ipcRenderer.invoke("log-message", "debug", name, ...args),
|
||||
}),
|
||||
},
|
||||
|
||||
// External link handling
|
||||
openExternal: (url: string) => ipcRenderer.invoke("open-external", url),
|
||||
};
|
||||
|
||||
contextBridge.exposeInMainWorld("electronAPI", api);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue