aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjanzen <jjanzen@jjanzen.ca>2025-02-10 17:45:04 -0600
committerjjanzen <jjanzen@jjanzen.ca>2025-02-10 17:45:04 -0600
commit86e0e3cf9340baf7ad380e4aa03f4cc8ee04ab51 (patch)
treea682e35fe10c2a1549ff04658ed2678075881f6d
parent439df5ecf0b3f4cd256e3c16d9791af83927e975 (diff)
filter myself from the listtest
-rw-r--r--scripts/cssa-webring.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/cssa-webring.js b/scripts/cssa-webring.js
index 749b23d..60de4c9 100644
--- a/scripts/cssa-webring.js
+++ b/scripts/cssa-webring.js
@@ -4,13 +4,11 @@ function load_random_site() {
fetch(webring_all_url)
.then((response) => response.json())
.then((obj) => {
- const entries = obj; // TODO: remove myself from the list
- const entries_cleaned = obj.filter((item) => {
+ const entries = obj.filter((item) => {
return item.url !== "https://jjanzen.ca";
});
- console.log(entries_cleaned);
const entry = entries[Math.floor(Math.random() * entries.length)];
- // window.location.href = entry.url;
+ window.location.href = entry.url;
});
}