BraydenMoore commited on
Commit
ccfb10d
1 Parent(s): 9714f25

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +10 -1
templates/index.html CHANGED
@@ -263,7 +263,16 @@
263
  feed.style.width = "80px";
264
  feed.style.height = "50px";
265
  feed.src = loadingGif;
266
- window.location.href = "?new=true";
 
 
 
 
 
 
 
 
 
267
  };
268
 
269
  img.src = newUrl;
 
263
  feed.style.width = "80px";
264
  feed.style.height = "50px";
265
  feed.src = loadingGif;
266
+
267
+ const urlParams = new URLSearchParams(window.location.search);
268
+ const countryElement = document.getElementById("country");
269
+ if (urlParams.get('new') === 'false') {
270
+ countryElement.textContent = "couldn't connect.";
271
+ }
272
+ else {
273
+ window.location.href = "?new=true";
274
+ }
275
+
276
  };
277
 
278
  img.src = newUrl;