Fix webring code cause I broke it lmao
authorMira Ayre <mi@boxin.space>
Mon, 28 Mar 2022 13:02:32 +0000 (15:02 +0200)
committerMira Ayre <mi@boxin.space>
Mon, 28 Mar 2022 13:02:32 +0000 (15:02 +0200)
webring.js

index be43ac14b4feed2924f24683412efd9f9864972d..d3a850c55e2db411371dd82c0deee607d99a3d4a 100644 (file)
@@ -1,7 +1,6 @@
 var data = fetch( "https://lavender.software/webring/data.json" )
-       .then( function ( r ) {
-               let data = r.json() :
-
+       .then( function ( r ) { return r.json() ; } )
+       .then( function ( data ) {
                var index = -1 ;
                for ( var i = 0 ; i < data.length ; i ++ )
                        if ( data[i].id == "mira" )