feat: open checkout page

This commit is contained in:
Zamitto 2024-10-21 15:30:38 -03:00
parent 6ef1135ba2
commit 21fecb2c4e
6 changed files with 32 additions and 8 deletions

View file

@ -223,6 +223,7 @@ contextBridge.exposeInMainWorld("electron", {
getDefaultDownloadsPath: () => ipcRenderer.invoke("getDefaultDownloadsPath"),
isPortableVersion: () => ipcRenderer.invoke("isPortableVersion"),
openExternal: (src: string) => ipcRenderer.invoke("openExternal", src),
openCheckout: () => ipcRenderer.invoke("openCheckout"),
showOpenDialog: (options: Electron.OpenDialogOptions) =>
ipcRenderer.invoke("showOpenDialog", options),
platform: process.platform,