Make search work for all languages when contentDir is set. (#106)

This commit is contained in:
Fredrik Jonsson 2023-10-25 08:40:18 +02:00 • committed by GitHub
commit 94a6dc0af3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
})