Replace electron API mocks with actual electron API impl (#1535)

* link electron types locally

* Update electronAPI calls

* Fix source validation

* Payload to raw

* nit

* Update electron types
This commit is contained in:
Chenlei Hu
2024-11-13 17:20:18 -05:00
committed by GitHub
parent 82d00a1bcf
commit acba6097e0
8 changed files with 37 additions and 31 deletions

View File

@@ -21,7 +21,7 @@ export const useElectronDownloadStore = defineStore('downloads', () => {
const initialize = async () => {
if (isElectron()) {
const allDownloads: ElectronDownload[] =
await DownloadManager.getAllDownloads()
(await DownloadManager.getAllDownloads()) as unknown as ElectronDownload[]
for (const download of allDownloads) {
downloads.value.push(download)