0
0
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:
XhmikosR 2014-01-29 07:55:30 +02:00
parent 9cf9f6c099
commit 389e574aaa
2 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/* FileSaver.js
* A saveAs() FileSaver implementation.
* 2013-12-27
* 2014-01-24
*
* By Eli Grey, http://eligrey.com
* License: X11/MIT
@ -14,9 +14,15 @@
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
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) {
"use strict";
// IE <10 is explicitly unsupported
if (/MSIE [1-9]\./.test(navigator.userAgent)) {
return;
}
var
doc = view.document
// only get URL when necessary in case BlobBuilder.js hasn't overridden it yet