aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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;
});
}