fix: be less precious about data formats
This commit is contained in:
parent
68d941af6b
commit
84e5e91894
3 changed files with 3 additions and 2 deletions
|
@ -110,7 +110,7 @@ window.addEventListener('load', () => {
|
|||
|
||||
const loadSearchIndex = async () => {
|
||||
try {
|
||||
const response = await fetch('/api/search')
|
||||
const response = await fetch('/data/search.json')
|
||||
const index = await response.json()
|
||||
const resultsById = index.reduce((byId, result) => {
|
||||
byId[result.id] = result
|
||||
|
|
Reference in a new issue