Răsfoiți Sursa

fixed `finished` value

Gildas 2 ani în urmă
părinte
comite
89c746266e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      src/core/common/download.js

+ 3 - 1
src/core/common/download.js

@@ -65,12 +65,14 @@ async function downloadPage(pageData, options) {
 			defaultEditorMode: options.defaultEditorMode,
 			includeInfobar: options.includeInfobar,
 			warnUnsavedPage: options.warnUnsavedPage,
-			blobURL
+			blobURL,
+			finished: true
 		};
 		const result = await browser.runtime.sendMessage(message);
 		URL.revokeObjectURL(blobURL);
 		if (result.error) {
 			message.blobURL = null;
+			message.finished = null;
 			for (let blockIndex = 0; blockIndex * MAX_CONTENT_SIZE < pageData.content.length; blockIndex++) {
 				message.truncated = pageData.content.length > MAX_CONTENT_SIZE;
 				if (message.truncated) {