Made extension editable
This commit is contained in:
+2
-3
@@ -1,6 +1,5 @@
|
||||
|
||||
|
||||
|
||||
// FileSaver.js
|
||||
var BlobBuilder = BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder || (function(view) {
|
||||
if (navigator.userAgent.indexOf('MSIE') > -1 && navigator.userAgent.indexOf('MSIE 10') == -1) {
|
||||
@@ -363,7 +362,7 @@ var saveAs = saveAs
|
||||
|
||||
|
||||
/* 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) {
|
||||
console.log('Unsupported Browser');
|
||||
return;
|
||||
@@ -408,5 +407,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user