mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Update Filesaver.js to the latest git (2014-01-24).
This commit is contained in:
parent
9cf9f6c099
commit
389e574aaa
2
docs/assets/js/customize.min.js
vendored
2
docs/assets/js/customize.min.js
vendored
File diff suppressed because one or more lines are too long
10
docs/assets/js/vendor/filesaver.js
vendored
10
docs/assets/js/vendor/filesaver.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/* FileSaver.js
|
/* FileSaver.js
|
||||||
* A saveAs() FileSaver implementation.
|
* A saveAs() FileSaver implementation.
|
||||||
* 2013-12-27
|
* 2014-01-24
|
||||||
*
|
*
|
||||||
* By Eli Grey, http://eligrey.com
|
* By Eli Grey, http://eligrey.com
|
||||||
* License: X11/MIT
|
* License: X11/MIT
|
||||||
@ -14,9 +14,15 @@
|
|||||||
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
|
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
|
||||||
|
|
||||||
var saveAs = saveAs
|
var saveAs = saveAs
|
||||||
|| (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
|
// IE 10+ (native saveAs)
|
||||||
|
|| (navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
|
||||||
|
// Everyone else
|
||||||
|| (function(view) {
|
|| (function(view) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
// IE <10 is explicitly unsupported
|
||||||
|
if (/MSIE [1-9]\./.test(navigator.userAgent)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var
|
var
|
||||||
doc = view.document
|
doc = view.document
|
||||||
// only get URL when necessary in case BlobBuilder.js hasn't overridden it yet
|
// only get URL when necessary in case BlobBuilder.js hasn't overridden it yet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user