Browse Source

convert to Uint8Array if necessary (fix #1422)

Gildas 1 năm trước cách đây
mục cha
commit
4cbe358345
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/core/common/download.js

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

@@ -168,6 +168,9 @@ async function downloadPage(pageData, options) {
 }
 
 async function downloadPageForeground(pageData, options) {
+	if (Array.isArray(pageData.content)) {
+		pageData.content = new Uint8Array(pageData.content);
+	}
 	if (options.sharePage && navigator.share) {
 		await sharePage(pageData, options);
 	} else {