mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: reducing http downloads duplicate
This commit is contained in:
parent
bbe68a0aff
commit
dd7229dc59
1 changed files with 0 additions and 2 deletions
|
@ -42,8 +42,6 @@ export class HttpDownload {
|
||||||
WindowManager.mainWindow?.webContents.session.once(
|
WindowManager.mainWindow?.webContents.session.once(
|
||||||
"will-download",
|
"will-download",
|
||||||
(_event, item, _webContents) => {
|
(_event, item, _webContents) => {
|
||||||
console.log(_event);
|
|
||||||
|
|
||||||
this.downloadItem = item;
|
this.downloadItem = item;
|
||||||
|
|
||||||
item.setSavePath(path.join(this.downloadPath, item.getFilename()));
|
item.setSavePath(path.join(this.downloadPath, item.getFilename()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue