base_href as a data attr
This commit is contained in:
@ -42,7 +42,7 @@ function updateCompletions(element) {
|
||||
}
|
||||
else {
|
||||
element.completer_timeout = setTimeout(() => {
|
||||
fetch(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) {
|
||||
|
Reference in New Issue
Block a user