You know glass reflects the rays of the sun. So only a very small percent gets in? Especially if your window is closed. Theyd get a very small amount of it. They should have more uvb and uva exposed to them.
Though that is adorable. My toads are a little bit weird. They like to bask too. The larger one will sit on the heighest top of the small terrarium to soak up the rays and then the other ones followsuit him. I do this with my turtles light. Like I put it next to my turtles tank since its light its very powerful. But since its a distance of two feet it gets a certain ammount. Which for now is okay. I want to expose them to atleast 7,000 lux. Or 10,000lux.