Made extension editable

This commit is contained in:
Travis Krause
2013-10-11 12:31:14 -05:00
parent 156d0dfc70
commit ab2a4752e2
+2 -3
View File
@@ -1,6 +1,5 @@
// FileSaver.js // FileSaver.js
var BlobBuilder = BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder || (function(view) { var BlobBuilder = BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder || (function(view) {
if (navigator.userAgent.indexOf('MSIE') > -1 && navigator.userAgent.indexOf('MSIE 10') == -1) { if (navigator.userAgent.indexOf('MSIE') > -1 && navigator.userAgent.indexOf('MSIE 10') == -1) {
@@ -363,7 +362,7 @@ var saveAs = saveAs
/* The meat and potatoes! */ /* The meat and potatoes! */
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) { if (navigator.userAgent.indexOf('MSIE') > -1 && navigator.userAgent.indexOf('MSIE 10') == -1) {
console.log('Unsupported Browser'); console.log('Unsupported Browser');
return; return;
@@ -408,5 +407,5 @@ download_vcs = function(filename, subject, description, location, begin, end) {
bb.append(calendar); bb.append(calendar);
var blob = bb.getBlob("text/x-vCalendar;charset=" + document.characterSet); var blob = bb.getBlob("text/x-vCalendar;charset=" + document.characterSet);
} }
saveAs(blob, filename+".vcs"); saveAs(blob, filename+ext);
} }