mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-27 02:46:04 +02:00
Lower-case search field.
This commit is contained in:
parent
dc6db72c03
commit
5f47357960
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
node_modules
|
||||
docker/data
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
data/
|
|
@ -4,7 +4,8 @@ async function load() {
|
|||
let response = await fetch("api/index")
|
||||
items = await response.json();
|
||||
for (item of items) {
|
||||
item.search = item.name + " " + item.unit;
|
||||
item.search = item.name + " " + item.unit;
|
||||
item.search = item.search.toLowerCase();
|
||||
}
|
||||
|
||||
console.log(items.length);
|
||||
|
|
Loading…
Reference in New Issue
Block a user