Skip to content

Commit

Permalink
home page lacks base-href
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Feb 4, 2024
1 parent 74889c4 commit c71fce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/autocomplete/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c71fce0

Please sign in to comment.