nwcell / ics.js

A browser firendly VCS file generator written entirely in javascript!!!!!!
MIT License
614 stars 258 forks source link

'BlobBuilder' is undefined in IE 10 #47

Open rotwurstesser opened 6 years ago

rotwurstesser commented 6 years ago

I get the error "'BlobBuilder' is undefined" in both my code and the demo(https://rawgit.com/nwcell/ics.js/master/demo/demo.html#) on IE 10 (tested on demo with emulation in devtools) Is there any workaround or fix known?

rotwurstesser commented 6 years ago

Hi @nwcell i think i solved it! i changed ics.js and added: if (window.MSBlobBuilder) { var bb = new window.MSBlobBuilder(); bb.append(calendar); blob = bb.getBlob('text/x-vCalendar;charset=' + document.characterSet); } This way it also works in IE10