astrojs / fitsjs

JavaScript library for reading the FITS astronomical format. Functionality includes reading of images, data cubes, compressed images, binary and ascii tables.
http://astrojs.github.io/fitsjs/
MIT License
85 stars 21 forks source link

Safari loading error #13

Closed pmelchior closed 11 years ago

pmelchior commented 11 years ago

I'm developing a web tool for browsing FITS files and make use of webfits and thus fitsjs. In most browsers, everything works as expected, but Safari on Mac OS X 10.6.8 throws an error at line 690 of fits.js (when attempting to load a valid FITS file):

TypeError: '[object BlobConstructor]' is not a constructor (evaluating 'new Blob([fn1], {
        type: mime
      })')

Help appreciated.

Peter

kapadia commented 11 years ago

Hi Peter, this is an issue with Safari 5. Upgrading to Safari 6 will resolve this issue. Despite supporting Blobs, Safari 5 does not support the Blob constructor.

Please reference "Browser compatibility" towards the end of this document: https://developer.mozilla.org/en-US/docs/DOM/Blob

I'm interested in the web tool that you're developing. Would you mind sending a link when you're ready?

pmelchior commented 11 years ago

Hi Amit, thanks for the details. I guess that just means the web app won't be available for Safari 5. I can live with that. The application is a browser for proprietary data, so I can't share the link. But I can probably make a standalone example once the code base is stable.

kapadia commented 11 years ago

Oh, forgot to mention that getFrame should work in Safari 5. getFrameAsync is the method calling the blob constructor.

Sure, if you have code to share, I'm sure others would appreciate it.

On Apr 25, 2013, at 23:42, Peter Melchior notifications@github.com wrote:

Hi Amit, thanks for the details. I guess that just means the web app won't be available for Safari 5. I can live with that. The application is a browser for proprietary data, so I can't share the link. But I can probably make a standalone example once the code base is stable.

— Reply to this email directly or view it on GitHub.