BraydenMoore commited on
Commit
2afc752
1 Parent(s): 60cce41

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +2 -1
templates/index.html CHANGED
@@ -327,6 +327,7 @@
327
 
328
  const urlParams = new URLSearchParams(window.location.search);
329
  const countryElement = document.getElementById("country");
 
330
 
331
  if (urlParams.get('id')) {
332
  feed.style.opacity = "0.15";
@@ -337,7 +338,7 @@
337
  }
338
  else {
339
  console.log("error, refreshing");
340
- refreshImage();
341
  }
342
  };
343
 
 
327
 
328
  const urlParams = new URLSearchParams(window.location.search);
329
  const countryElement = document.getElementById("country");
330
+ const id = this.getAttribute("data-id");
331
 
332
  if (urlParams.get('id')) {
333
  feed.style.opacity = "0.15";
 
338
  }
339
  else {
340
  console.log("error, refreshing");
341
+ window.location.href = `?new=false&id=${id}`;
342
  }
343
  };
344