assets/js/helpers/request.js in lookbook-2.3.0 vs assets/js/helpers/request.js in lookbook-2.3.2

- old
+ new

@@ -1,6 +1,6 @@ -async function fetchHTML(url, selector) { - const response = await fetch(url || window.document.location); +async function fetchHTML(url, selector, options = {}) { + const response = await fetch(url || window.document.location, options); const html = await response.text(); const doc = new DOMParser().parseFromString(html, "text/html"); return { ok: response.ok, fragment: selector ? doc.querySelector(selector).outerHTML : null,