feat: Update css to work on mobile and update js to use direct API not proxied
All checks were successful
Build Docker / BuildImage (push) Successful in 34s

This commit is contained in:
2024-12-30 19:32:29 +11:00
parent 4c4814006a
commit c3db03e67d
2 changed files with 6 additions and 2 deletions

View File

@@ -42,7 +42,11 @@
};
async function fetchJoke() {
const response = await fetch('/api/joke');
const response = await fetch('https://icanhazdadjoke.com', {
headers: {
'Accept': 'application/json'
}
});
const data = await response.json();
document.getElementById('joke').innerText = data.joke;
}