Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
jio
Commits
d5b1a039
Commit
d5b1a039
authored
Aug 29, 2018
by
Guillaume Royer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(node): support Blob in XMLHttpRequest
parent
64ef086f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/node/jio.js
src/node/jio.js
+14
-1
No files found.
src/node/jio.js
View file @
d5b1a039
var
jIO
=
window
.
jIO
;
\ No newline at end of file
var
jIO
=
window
.
jIO
;
// Blob is not supported by xhr2, so convert to ArrayBuffer instead
var
originalAjax
=
jIO
.
util
.
ajax
;
jIO
.
util
.
ajax
=
function
ajax
(
param
)
{
if
(
param
.
data
instanceof
Blob
)
{
return
jIO
.
util
.
readBlobAsArrayBuffer
(
param
.
data
).
then
(
function
(
data
)
{
param
.
data
=
data
.
target
.
result
;
return
originalAjax
(
param
);
});
}
return
originalAjax
(
param
);
};
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