mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Update Filesaver.js to the latest git (2014-01-24).
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+8
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user