mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user