Skip to content

Commit 33d8fde

Browse files
committed
Merge pull request twbs#15708 from twbs/customizer-libs
Update customizer libs
2 parents a0a00b2 + f674f87 commit 33d8fde

File tree

4 files changed

+9958
-6341
lines changed

4 files changed

+9958
-6341
lines changed

docs/assets/js/customize.min.js

Lines changed: 16 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)