Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
workaround for safari compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Sep 14, 2016
1 parent b9656b9 commit 2ecf057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $(document).ready(() => {
else { jobCount -= 1; } // error occur

if (done == jobCount) {
var file = new File([icsGenerate(course_datas)], {type: 'text/calendar;charset=utf-8'});
var file = new Blob([icsGenerate(course_datas)], {type: 'text/plain;charset=utf-8'});
saveAs(file, 'calendar.ics', true); // last argument true: save file without BOM
}
});
Expand Down

0 comments on commit 2ecf057

Please sign in to comment.