Commit c918289b authored by XhmikosR's avatar XhmikosR
Browse files

Bump FileSaver.js to v2015-01-04.

parent feb0da4c
Showing with 7 additions and 6 deletions
+7 -6
/* FileSaver.js /* FileSaver.js
* A saveAs() FileSaver implementation. * A saveAs() FileSaver implementation.
* 2014-08-29 * 2015-01-04
* *
* By Eli Grey, http://eligrey.com * By Eli Grey, http://eligrey.com
* License: X11/MIT * License: X11/MIT
...@@ -49,9 +49,10 @@ var saveAs = saveAs ...@@ -49,9 +49,10 @@ var saveAs = saveAs
} }
, force_saveable_type = "application/octet-stream" , force_saveable_type = "application/octet-stream"
, fs_min_size = 0 , fs_min_size = 0
// See https://code.google.com/p/chromium/issues/detail?id=375297#c7 for // See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and
// the reasoning behind the timeout and revocation flow // https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047
, arbitrary_revoke_timeout = 10 // for the reasoning behind the timeout and revocation flow
, arbitrary_revoke_timeout = 500 // in ms
, revoke = function(file) { , revoke = function(file) {
var revoker = function() { var revoker = function() {
if (typeof file === "string") { // file is an object URL if (typeof file === "string") { // file is an object URL
...@@ -234,8 +235,8 @@ var saveAs = saveAs ...@@ -234,8 +235,8 @@ var saveAs = saveAs
// while `this` is nsIContentFrameMessageManager // while `this` is nsIContentFrameMessageManager
// with an attribute `content` that corresponds to the window // with an attribute `content` that corresponds to the window
if (typeof module !== "undefined" && module !== null) { if (typeof module !== "undefined" && module.exports) {
module.exports = saveAs; module.exports.saveAs = saveAs;
} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) { } else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
define([], function() { define([], function() {
return saveAs; return saveAs;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment