Parcourir la source

fix optional parameter

Gildas il y a 1 an
Parent
commit
8aa6aac259
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/single-file/fetch/content/content-fetch.js

+ 1 - 1
src/lib/single-file/fetch/content/content-fetch.js

@@ -132,7 +132,7 @@ export {
 	frameFetch
 };
 
-async function fetchResource(url, options, useHostFetch = true) {
+async function fetchResource(url, options = {}, useHostFetch = true) {
 	try {
 		const fetchOptions = {
 			cache: options.cache || "force-cache",