Explorar o código

fix optional parameter

Gildas hai 1 ano
pai
achega
8aa6aac259
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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",