BraydenMoore
commited on
Commit
•
29976e4
1
Parent(s):
46df8d0
Update templates/index.html
Browse files- templates/index.html +1 -6
templates/index.html
CHANGED
@@ -267,7 +267,6 @@
|
|
267 |
let currentFeed;
|
268 |
let firstLoad = true;
|
269 |
document.addEventListener("DOMContentLoaded", function() {
|
270 |
-
currentFeed = this.getAttribute("data-id");
|
271 |
const feed = document.getElementById("feed");
|
272 |
feed.style.width = "80px";
|
273 |
feed.style.height = "50px";
|
@@ -333,13 +332,9 @@
|
|
333 |
feed.style.opacity = "0.15";
|
334 |
countryElement.textContent = "couldn't connect.";
|
335 |
}
|
336 |
-
else
|
337 |
window.location.href = "?new=true";
|
338 |
}
|
339 |
-
else {
|
340 |
-
console.log("error, refreshing");
|
341 |
-
window.location.href = `?new=false&id=${currentFeed}`;
|
342 |
-
}
|
343 |
};
|
344 |
|
345 |
img.src = newUrl;
|
|
|
267 |
let currentFeed;
|
268 |
let firstLoad = true;
|
269 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
270 |
const feed = document.getElementById("feed");
|
271 |
feed.style.width = "80px";
|
272 |
feed.style.height = "50px";
|
|
|
332 |
feed.style.opacity = "0.15";
|
333 |
countryElement.textContent = "couldn't connect.";
|
334 |
}
|
335 |
+
else
|
336 |
window.location.href = "?new=true";
|
337 |
}
|
|
|
|
|
|
|
|
|
338 |
};
|
339 |
|
340 |
img.src = newUrl;
|