mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add event and check if user is logged in
This commit is contained in:
parent
6b03705d54
commit
17cfc7bb02
6 changed files with 21 additions and 3 deletions
|
@ -106,6 +106,7 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
getVersion: () => ipcRenderer.invoke("getVersion"),
|
||||
getDefaultDownloadsPath: () => ipcRenderer.invoke("getDefaultDownloadsPath"),
|
||||
openExternal: (src: string) => ipcRenderer.invoke("openExternal", src),
|
||||
isUserLoggedIn: () => ipcRenderer.invoke("isUserLoggedIn"),
|
||||
showOpenDialog: (options: Electron.OpenDialogOptions) =>
|
||||
ipcRenderer.invoke("showOpenDialog", options),
|
||||
platform: process.platform,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue