Skip to content

Commit

Permalink
Update ouical.js
Browse files Browse the repository at this point in the history
Replacing target="_blank" with a "download" parameter, based on the recommendation here: carlsednaoui/add-to-calendar-buttons#22
  • Loading branch information
lindseyneedham authored May 22, 2019
1 parent 13d82a5 commit 2ff2dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-to-calendar-button/ouical.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
'END:VEVENT',
'END:VCALENDAR'].join('\n'));

return '<a class="' + eClass + '" target="_blank" href="' +
return '<a class="' + eClass + '" download href="' +
href + '">' + calendarName + ' Calendar</a>';
},

Expand Down

0 comments on commit 2ff2dfc

Please sign in to comment.