Procházet zdrojové kódy

convert to Uint8Array if necessary (fix #1422)

Gildas před 1 rokem
rodič
revize
4cbe358345
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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 {