nwcell / ics.js

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

Set content type when Firefox #62

Open mlnmln opened 5 years ago

mlnmln commented 5 years ago

IS: When using the download method generated files will be interpreted as plain text(txt) files in Firefox. Thus when the download dialog opens, the suggested application to open the file will be notepad/textedit.

This PR adds the missing type in the saveAs call. https://github.com/eligrey/FileSaver.js#examples

Afterwards when the download dialog opens, the suggested application to open the file will be ical/outlook.