BraydenMoore commited on
Commit
594995a
·
1 Parent(s): 4f48e80

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +5 -0
templates/index.html CHANGED
@@ -326,13 +326,18 @@
326
  const countryElement = document.getElementById("country");
327
 
328
  if (urlParams.get('id')) {
 
329
  feed.style.width = "80px";
330
  feed.style.height = "50px";
331
  feed.src = loadingGif;
332
  feed.style.opacity = "0.15";
333
  countryElement.textContent = "couldn't connect.";
334
  }
 
 
 
335
  else {
 
336
  console.log("Trying again")
337
  setTimeout(refreshImage, 250);
338
  }
 
326
  const countryElement = document.getElementById("country");
327
 
328
  if (urlParams.get('id')) {
329
+ firstLoad = false;
330
  feed.style.width = "80px";
331
  feed.style.height = "50px";
332
  feed.src = loadingGif;
333
  feed.style.opacity = "0.15";
334
  countryElement.textContent = "couldn't connect.";
335
  }
336
+ else if (firstLoad) {
337
+ window.location.href = "?new=true";
338
+ }
339
  else {
340
+ firstLoad = false;
341
  console.log("Trying again")
342
  setTimeout(refreshImage, 250);
343
  }