Sfoglia il codice sorgente

fixed issue #246

Former-commit-id: 7cca2d602c2d5fcc6a435e02de409f63976678de
Gildas 6 anni fa
parent
commit
b5b38deb88
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/hooks/content/content-hooks-web.js

+ 1 - 1
lib/hooks/content/content-hooks-web.js

@@ -51,7 +51,7 @@
 			const response = await fetch(url, { cache: "force-cache" });
 			detail = { url, response: await response.arrayBuffer(), headers: response.headers, status: response.status };
 		} catch (error) {
-			detail = { url, error };
+			detail = { url, error: error.toString() };
 		}
 		dispatchEvent(new CustomEvent(FETCH_RESPONSE__EVENT, { detail }));
 	});