WorldWideTelescope / wwt-web-client

The WorldWide Telescope web client lets you explore the universe in your browser.
https://worldwidetelescope.org/webclient/
MIT License
105 stars 35 forks source link

Fix issues with FITS loading #225

Closed jsub1 closed 5 years ago

jsub1 commented 5 years ago

This PR addresses an issue where trying to load the same FITS file twice or a non-FITS file as a FITS file would cause the web client to freeze. Now loading the same FITS file twice will work as expected and trying to load a non-FITS file will result in a warning being show to the user. There has been some discussion with @pkgw about alternatives to using the JavaScript alert in the backend, but implementing that is beyond the scope of this PR.