home page lacks base-href

This commit is contained in:
Shish 2024-02-04 00:33:22 +00:00
parent e753a68e76
commit 51afc014a2

View file

@ -42,7 +42,7 @@ function updateCompletions(element) {
}
else {
element.completer_timeout = setTimeout(() => {
fetch(document.body.getAttribute("data-base-href") + '/api/internal/autocomplete?s=' + word).then(
fetch((document.body.getAttribute("data-base-href") ?? "") + '/api/internal/autocomplete?s=' + word).then(
(response) => response.json()
).then((json) => {
if(element.selected_completion !== -1) {