home page lacks base-href
This commit is contained in:
parent
e753a68e76
commit
51afc014a2
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ function updateCompletions(element) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
element.completer_timeout = setTimeout(() => {
|
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()
|
(response) => response.json()
|
||||||
).then((json) => {
|
).then((json) => {
|
||||||
if(element.selected_completion !== -1) {
|
if(element.selected_completion !== -1) {
|
||||||
|
|
Reference in a new issue