1
0
Эх сурвалжийг харах

convert to Uint8Array if necessary (fix #1422)

Gildas 1 жил өмнө
parent
commit
4cbe358345

+ 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 {