Skip to content

Commit b933e14

Browse files
Merge branch 'main' into patch-2
2 parents 9e0c895 + 8a788d8 commit b933e14

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ As an example:
9191
9292
## Properties
9393
94-
- `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()`
94+
- `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()`
9595
9696
## Events
9797

examples/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
}
110110
return Promise.resolve(new Response(robotsList));
111111
}
112-
// fetchResult must be a function that return a Promise of string and that accepts as parameters an element and an URL
113-
document.querySelector("auto-complete#custom-fetching-method").fetchResult = async (el, url) => (await fetch(url)).text();
112+
// fetchResult must be a function that return a Promise of string and that accepts as parameters a URL
113+
document.querySelector("auto-complete#custom-fetching-method").fetchResult = async (url) => (await fetch(url)).text();
114114
</script>
115115

116116
<form>
@@ -129,4 +129,4 @@
129129
<script type="module" src="https://unpkg.com/@github/auto-complete-element@latest/dist/bundle.js"></script>
130130
</body>
131131
</html>
132-
132+

0 commit comments

Comments
 (0)