Skip to content

Commit c7b7634

Browse files
committed
🔀 Fix: webring navigation and random redirect logic [2]
1 parent 76f0db9 commit c7b7634

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

webring.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fetch('./members.json')
88
.then(response => response.json())
99
.then(members => {
1010

11-
// Render members list on index.html
11+
// render members list on index.html
1212
const membersList = document.getElementById('members');
1313
if (membersList) {
1414
members.forEach(member => {
@@ -27,10 +27,10 @@ fetch('./members.json')
2727
const params = new URLSearchParams(window.location.search);
2828
const name = params.get('name');
2929

30-
// Only run redirect logic if on next.html, prev.html, or rand.html
30+
// only run redirect logic if on next.html, prev.html, or rand.html
3131
if (['next.html','prev.html','rand.html'].includes(path)) {
3232

33-
// If a name is provided but does not exist, redirect to hub
33+
// if a name is provided but does not exist, redirect to hub
3434
if (name && !members.some(m => m.name === name)) {
3535
window.location.href = 'index.html';
3636
} else if (path === 'next.html' && name) {

0 commit comments

Comments
 (0)