mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: loading from me endpoint and updating sidebar profile
This commit is contained in:
parent
aeaeb1f086
commit
76259c2b54
12 changed files with 178 additions and 59 deletions
|
@ -104,6 +104,7 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
/* Misc */
|
||||
ping: () => ipcRenderer.invoke("ping"),
|
||||
getVersion: () => ipcRenderer.invoke("getVersion"),
|
||||
isUserLoggedIn: () => ipcRenderer.invoke("isUserLoggedIn"),
|
||||
getDefaultDownloadsPath: () => ipcRenderer.invoke("getDefaultDownloadsPath"),
|
||||
openExternal: (src: string) => ipcRenderer.invoke("openExternal", src),
|
||||
showOpenDialog: (options: Electron.OpenDialogOptions) =>
|
||||
|
@ -129,4 +130,5 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
/* Profile */
|
||||
getUserProfile: (username: string) =>
|
||||
ipcRenderer.invoke("getUserProfile", username),
|
||||
getMe: () => ipcRenderer.invoke("getMe"),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue