We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save as
After I trigger download channel, I get the onProgress.progress log before the Save as popup appears.
download
onProgress.progress
ipcMain.on('download', async (event: Electron.IpcMainInvokeEvent, downloadUrl: string) => { const win = BrowserWindow.getFocusedWindow()! try { await download(win, downloadUrl, { saveAs: true, onProgress: (progress) => { console.log('onProgress.progress: ', progress); mainWindow.webContents.send('download-progress', progress) }, onCompleted: (item) => { mainWindow.webContents.send('download-completed', item) } }) } catch (error) { if (error instanceof CancelError) { console.info('item.cancel() was called') } else { console.error(error) } } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After I trigger
download
channel, I get theonProgress.progress
log before the Save as popup appears.Additional informations:
The text was updated successfully, but these errors were encountered: