Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c918289b
Commit
c918289b
authored
10 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Bump FileSaver.js to v2015-01-04.
parent
feb0da4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/assets/js/vendor/FileSaver.js
+7
-6
docs/assets/js/vendor/FileSaver.js
with
7 additions
and
6 deletions
+7
-6
docs/assets/js/vendor/FileSaver.js
+
7
-
6
View file @
c918289b
/* FileSaver.js
/* FileSaver.js
* A saveAs() FileSaver implementation.
* A saveAs() FileSaver implementation.
* 201
4
-0
8-29
* 201
5
-0
1-04
*
*
* By Eli Grey, http://eligrey.com
* By Eli Grey, http://eligrey.com
* License: X11/MIT
* License: X11/MIT
...
@@ -49,9 +49,10 @@ var saveAs = saveAs
...
@@ -49,9 +49,10 @@ var saveAs = saveAs
}
}
,
force_saveable_type
=
"
application/octet-stream
"
,
force_saveable_type
=
"
application/octet-stream
"
,
fs_min_size
=
0
,
fs_min_size
=
0
// See https://code.google.com/p/chromium/issues/detail?id=375297#c7 for
// See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and
// the reasoning behind the timeout and revocation flow
// https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047
,
arbitrary_revoke_timeout
=
10
// for the reasoning behind the timeout and revocation flow
,
arbitrary_revoke_timeout
=
500
// in ms
,
revoke
=
function
(
file
)
{
,
revoke
=
function
(
file
)
{
var
revoker
=
function
()
{
var
revoker
=
function
()
{
if
(
typeof
file
===
"
string
"
)
{
// file is an object URL
if
(
typeof
file
===
"
string
"
)
{
// file is an object URL
...
@@ -234,8 +235,8 @@ var saveAs = saveAs
...
@@ -234,8 +235,8 @@ var saveAs = saveAs
// while `this` is nsIContentFrameMessageManager
// while `this` is nsIContentFrameMessageManager
// with an attribute `content` that corresponds to the window
// with an attribute `content` that corresponds to the window
if
(
typeof
module
!==
"
undefined
"
&&
module
!==
null
)
{
if
(
typeof
module
!==
"
undefined
"
&&
module
.
exports
)
{
module
.
exports
=
saveAs
;
module
.
exports
.
saveAs
=
saveAs
;
}
else
if
((
typeof
define
!==
"
undefined
"
&&
define
!==
null
)
&&
(
define
.
amd
!=
null
))
{
}
else
if
((
typeof
define
!==
"
undefined
"
&&
define
!==
null
)
&&
(
define
.
amd
!=
null
))
{
define
([],
function
()
{
define
([],
function
()
{
return
saveAs
;
return
saveAs
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment