BraydenMoore commited on
Commit
1c650e9
·
1 Parent(s): c13c54e

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +3 -3
templates/index.html CHANGED
@@ -158,11 +158,11 @@
158
  });
159
  });
160
 
161
- document.getElementById("refreshButton").addEventListener("click", function() {
162
  const feed = document.getElementById("feed");
163
  const currentSrc = feed.src;
164
- feed.src = ""; // Clear current src
165
- setTimeout(() => { feed.src = currentSrc; }, 100); // Reset src after a short delay
166
  });
167
  </script>
168
  </body>
 
158
  });
159
  });
160
 
161
+ document.getElementById("refreshButton").addEventListener("click", function() {
162
  const feed = document.getElementById("feed");
163
  const currentSrc = feed.src;
164
+ const timestamp = new Date().getTime(); // Generate a unique timestamp
165
+ feed.src = `${currentSrc.split('?')[0]}?t=${timestamp}`; // Append timestamp to the URL
166
  });
167
  </script>
168
  </body>