Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
7ded2d18
Commit
7ded2d18
authored
Jul 25, 2014
by
XhmikosR
Committed by
XhmikosR
Oct 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Blob.js to v2014-07-24.
parent
07f1d89d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
Gruntfile.js
Gruntfile.js
+1
-1
docs/assets/js/vendor/Blob.js
docs/assets/js/vendor/Blob.js
+23
-5
No files found.
Gruntfile.js
View file @
7ded2d18
...
@@ -128,7 +128,7 @@ module.exports = function (grunt) {
...
@@ -128,7 +128,7 @@ module.exports = function (grunt) {
'
docs/assets/js/vendor/less.min.js
'
,
'
docs/assets/js/vendor/less.min.js
'
,
'
docs/assets/js/vendor/jszip.min.js
'
,
'
docs/assets/js/vendor/jszip.min.js
'
,
'
docs/assets/js/vendor/uglify.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/vendor/filesaver.js
'
,
'
docs/assets/js/raw-files.min.js
'
,
'
docs/assets/js/raw-files.min.js
'
,
'
docs/assets/js/src/customizer.js
'
'
docs/assets/js/src/customizer.js
'
...
...
docs/assets/js/vendor/
b
lob.js
→
docs/assets/js/vendor/
B
lob.js
View file @
7ded2d18
/* Blob.js
/* Blob.js
* A Blob implementation.
* A Blob implementation.
* 2014-07-
01
* 2014-07-
24
*
*
* By Eli Grey, http://eligrey.com
* By Eli Grey, http://eligrey.com
* By Devin Samarin, https://github.com/
eboyjr
* By Devin Samarin, https://github.com/
dsamarin
* License: X11/MIT
* License: X11/MIT
* See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
* See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
*/
*/
...
@@ -62,13 +62,31 @@
...
@@ -62,13 +62,31 @@
,
ArrayBuffer
=
view
.
ArrayBuffer
,
ArrayBuffer
=
view
.
ArrayBuffer
,
Uint8Array
=
view
.
Uint8Array
,
Uint8Array
=
view
.
Uint8Array
,
origin
=
/^
[\w
-
]
+:
\/
*
\[?[\w\.
:-
]
+
\]?(?:
:
[
0-9
]
+
)?
/
;
;
FakeBlob
.
fake
=
FB_proto
.
fake
=
true
;
FakeBlob
.
fake
=
FB_proto
.
fake
=
true
;
while
(
file_ex_code
--
)
{
while
(
file_ex_code
--
)
{
FileException
.
prototype
[
file_ex_codes
[
file_ex_code
]]
=
file_ex_code
+
1
;
FileException
.
prototype
[
file_ex_codes
[
file_ex_code
]]
=
file_ex_code
+
1
;
}
}
// Polyfill URL
if
(
!
real_URL
.
createObjectURL
)
{
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
)
{
URL
.
createObjectURL
=
function
(
blob
)
{
var
var
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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