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
7ded2d18
Commit
7ded2d18
authored
10 years ago
by
XhmikosR
Committed by
XhmikosR
10 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update Blob.js to v2014-07-24.
parent
07f1d89d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Gruntfile.js
+1
-1
Gruntfile.js
docs/assets/js/vendor/Blob.js
+23
-5
docs/assets/js/vendor/Blob.js
with
24 additions
and
6 deletions
+24
-6
Gruntfile.js
+
1
-
1
View file @
7ded2d18
...
...
@@ -128,7 +128,7 @@ module.exports = function (grunt) {
'
docs/assets/js/vendor/less.min.js
'
,
'
docs/assets/js/vendor/jszip.min.js
'
,
'
docs/assets/js/vendor/uglify.min.js
'
,
'
docs/assets/js/vendor/
b
lob.js
'
,
'
docs/assets/js/vendor/
B
lob.js
'
,
'
docs/assets/js/vendor/filesaver.js
'
,
'
docs/assets/js/raw-files.min.js
'
,
'
docs/assets/js/src/customizer.js
'
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/vendor/
b
lob.js
→
docs/assets/js/vendor/
B
lob.js
+
23
-
5
View file @
7ded2d18
/* Blob.js
* A Blob implementation.
* 2014-07-
01
*
* 2014-07-
24
*
* By Eli Grey, http://eligrey.com
* By Devin Samarin, https://github.com/
eboyjr
* By Devin Samarin, https://github.com/
dsamarin
* License: X11/MIT
* See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
*/
...
...
@@ -59,16 +59,34 @@
,
URL
=
real_URL
,
btoa
=
view
.
btoa
,
atob
=
view
.
atob
,
ArrayBuffer
=
view
.
ArrayBuffer
,
Uint8Array
=
view
.
Uint8Array
,
origin
=
/^
[\w
-
]
+:
\/
*
\[?[\w\.
:-
]
+
\]?(?:
:
[
0-9
]
+
)?
/
;
FakeBlob
.
fake
=
FB_proto
.
fake
=
true
;
while
(
file_ex_code
--
)
{
FileException
.
prototype
[
file_ex_codes
[
file_ex_code
]]
=
file_ex_code
+
1
;
}
// Polyfill URL
if
(
!
real_URL
.
createObjectURL
)
{
URL
=
view
.
URL
=
{};
URL
=
view
.
URL
=
function
(
uri
)
{
var
uri_info
=
document
.
createElementNS
(
"
http://www.w3.org/1999/xhtml
"
,
"
a
"
)
,
uri_origin
;
uri_info
.
href
=
uri
;
if
(
!
(
"
origin
"
in
uri_info
))
{
if
(
uri_info
.
protocol
.
toLowerCase
()
===
"
data:
"
)
{
uri_info
.
origin
=
null
;
}
else
{
uri_origin
=
uri
.
match
(
origin
);
uri_info
.
origin
=
uri_origin
&&
uri_origin
[
1
];
}
}
return
uri_info
;
};
}
URL
.
createObjectURL
=
function
(
blob
)
{
var
...
...
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