Quiero mostrar imágenes en mi página de inicio usando Firebase Storage y Javascript. Puedo leer todas las referencias de las imágenes en una carpeta, pero ¿cómo puedo mostrarlas en mi página de inicio?
// Now we get the references of these images listAll(listRef).then((res) => { res.items.forEach(function (imageRef) { // And finally display them console.log(imageRef); displayImage(imageRef); }); }).catch((error) => { // Handle any errors console.log("Error 1"); }); function displayImage(imageRef) { test = imageRef.getDownloadURL(); imageRef.getDownloadURL().then(function (url) { // TODO: Display the image on the UI const img = document.getElementById('tierFoto'); img.setAttribute('src', url); }).catch(function (error) { // Handle any errors console.log("Error 2"); }); }}Siempre obtengo el Error 1 La referencia (imageRef) se ve así: ingrese la descripción de la imagen aquí