MasterOfTheTiger / apod-extension

Web extension to show the latest Astronomy Picture of the Day.
https://addons.mozilla.org/en-US/firefox/addon/astronomy-picture/?src=userprofile
MIT License
2 stars 0 forks source link

After loading a video, can't not load any more #3

Closed MasterOfTheTiger closed 6 years ago

MasterOfTheTiger commented 6 years ago

After loading about seven pictures it seems that it does not load any more. It just shows the rest (title, description, copyright, date etc.) just fine. The issue probably has to do with loading too many or it has to do with NASA’s api restrictions.

MasterOfTheTiger commented 6 years ago

Update: after going back to where images don't show, all images don't show until popup is closed and reopened.

MasterOfTheTiger commented 6 years ago

Update: I have found the culprit. It is videos. After trying to load a video all of the images stop working. https://apod.nasa.gov/apod/ap180128.html is the specific video. If I skip it (with manual entry) it works perfectly. But I can't get the video to load.

MasterOfTheTiger commented 6 years ago

Fixed bug! When an image was loaded, it hid the video tag, and when a video was loaded, it hid the img tag. When both were viewed, both were hid. I made the correct one display when it was required, now it is fixed.