Made extension editable

This commit is contained in:
Travis Krause
2013-10-11 12:31:59 -05:00
parent ab2a4752e2
commit b37054a07b
+2 -2
View File
@@ -1,5 +1,5 @@
/* VCS-Maker.js */
download_vcs = function(filename, subject, description, location, begin, end) {
download_vcs = function(filename, subject, description, location, begin, end, ext='.vcs') {
if (navigator.userAgent.indexOf('MSIE') > -1 && navigator.userAgent.indexOf('MSIE 10') == -1) {
console.log('Unsupported Browser');
return;
@@ -44,5 +44,5 @@ download_vcs = function(filename, subject, description, location, begin, end) {
bb.append(calendar);
var blob = bb.getBlob("text/x-vCalendar;charset=" + document.characterSet);
}
saveAs(blob, filename+".vcs");
saveAs(blob, filename+ext);
}