home page lacks base-href
This commit is contained in:
@@ -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 New Issue
Block a user