Make search work for all languages when contentDir is set. (#106)
This commit is contained in:
parent
8f2b5bb97e
commit
94a6dc0af3
1 changed files with 3 additions and 2 deletions
|
|
@ -74,8 +74,9 @@ import * as params from '@params';
|
|||
}
|
||||
|
||||
function buildIndex() {
|
||||
const searchindex = params.basePath + 'searchindex.json';
|
||||
document.querySelector('.search-loading').classList.remove('hidden');
|
||||
fetch('/searchindex.json')
|
||||
fetch(searchindex)
|
||||
.then(function (response) {
|
||||
return response.json();
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue