Browse Source

pass hash when sending "downloads.end" event

Gildas 6 năm trước cách đây
mục cha
commit
3a781fde33
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      extension/core/content/content-download.js

+ 1 - 1
extension/core/content/content-download.js

@@ -69,7 +69,7 @@ this.singlefile.extension.core.content.download = this.singlefile.extension.core
 			}
 			browser.runtime.sendMessage({ method: "ui.processEnd" });
 		}
-		await browser.runtime.sendMessage({ method: "downloads.end", taskId: options.taskId });
+		await browser.runtime.sendMessage({ method: "downloads.end", taskId: options.taskId, hash: pageData.hash });
 	}
 
 	function downloadPageForeground(pageData) {