BraydenMoore commited on
Commit
b380d3b
1 Parent(s): 99e5bc8

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +1 -1
templates/index.html CHANGED
@@ -277,7 +277,7 @@
277
  async function refreshImage() {
278
  try {
279
  const response = await fetch(newUrl, { method: 'HEAD' });
280
- if (!response.ok) { // If HTTP code is not OK (like 500)
281
  console.error(`Fetch failed with status: ${response.status}`);
282
 
283
  const urlParams = new URLSearchParams(window.location.search);
 
277
  async function refreshImage() {
278
  try {
279
  const response = await fetch(newUrl, { method: 'HEAD' });
280
+ if (!response.ok) {
281
  console.error(`Fetch failed with status: ${response.status}`);
282
 
283
  const urlParams = new URLSearchParams(window.location.search);