File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments