diff --git a/README.md b/README.md index 609f080..265b63f 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ As an example: ## Properties -- `fetchResult` you can override the default method used to query for results by overriding this property: `document.querySelector('auto-complete').fetchResult = async (el, url) => (await fetch(url)).text()` +- `fetchResult` you can override the default method used to query for results by overriding this property: `document.querySelector('auto-complete').fetchResult = async (url) => (await fetch(url)).text()` ## Events diff --git a/examples/index.html b/examples/index.html index bd89f1f..15a81a0 100644 --- a/examples/index.html +++ b/examples/index.html @@ -109,8 +109,8 @@ } return Promise.resolve(new Response(robotsList)); } - // fetchResult must be a function that return a Promise of string and that accepts as parameters an element and an URL - document.querySelector("auto-complete#custom-fetching-method").fetchResult = async (el, url) => (await fetch(url)).text(); + // fetchResult must be a function that return a Promise of string and that accepts as parameters a URL + document.querySelector("auto-complete#custom-fetching-method").fetchResult = async (url) => (await fetch(url)).text();