Causata / svgenie

Save your D3 graphs and other SVG as an image, without a server-side component
MIT License
43 stars 6 forks source link

toBlob on IE 11 undefined #3

Open benrudolph opened 10 years ago

benrudolph commented 10 years ago

Hi there, great work on this library. One thing though, when I've tried to use this on IE 11, it gives me an error toBlob undefined here:

https://github.com/Causata/svgenie/blob/master/svgenie.js#L69

I believe this should be msToBlob

http://msdn.microsoft.com/en-us/library/ie/hh771732(v=vs.85).aspx

Haven't tested on IE10 yet

StoneCypher commented 7 years ago

This holds for IE10/11

If you need IE9, you need to use .toDataUrl and convert that to a blob manually