Skip to content

Commit c918289

Browse files
committed
Bump FileSaver.js to v2015-01-04.
1 parent feb0da4 commit c918289

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/assets/js/vendor/FileSaver.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* FileSaver.js
22
* A saveAs() FileSaver implementation.
3-
* 2014-08-29
3+
* 2015-01-04
44
*
55
* By Eli Grey, http://eligrey.com
66
* License: X11/MIT
@@ -49,9 +49,10 @@ var saveAs = saveAs
4949
}
5050
, force_saveable_type = "application/octet-stream"
5151
, fs_min_size = 0
52-
// See https://code.google.com/p/chromium/issues/detail?id=375297#c7 for
53-
// the reasoning behind the timeout and revocation flow
54-
, arbitrary_revoke_timeout = 10
52+
// See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and
53+
// https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047
54+
// for the reasoning behind the timeout and revocation flow
55+
, arbitrary_revoke_timeout = 500 // in ms
5556
, revoke = function(file) {
5657
var revoker = function() {
5758
if (typeof file === "string") { // file is an object URL
@@ -234,8 +235,8 @@ var saveAs = saveAs
234235
// while `this` is nsIContentFrameMessageManager
235236
// with an attribute `content` that corresponds to the window
236237

237-
if (typeof module !== "undefined" && module !== null) {
238-
module.exports = saveAs;
238+
if (typeof module !== "undefined" && module.exports) {
239+
module.exports.saveAs = saveAs;
239240
} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
240241
define([], function() {
241242
return saveAs;

0 commit comments

Comments
 (0)