Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
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
nginx-push-stream-module
Commits
35c74509
Commit
35c74509
authored
Dec 30, 2014
by
Wandenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix callbacks calls on crossdomain requests for IE
parent
d512497f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
pushstream.js
misc/js/pushstream.js
+21
-9
No files found.
misc/js/pushstream.js
View file @
35c74509
...
...
@@ -237,6 +237,17 @@ Authors: Wandenberg Peixoto <wandenberg@gmail.com>, Rogério Carvalho Schneider
settings
.
xhr
=
xhr
;
if
(
window
.
XDomainRequest
&&
(
xhr
instanceof
window
.
XDomainRequest
))
{
xhr
.
onload
=
function
()
{
if
(
settings
.
afterReceive
)
{
settings
.
afterReceive
(
xhr
);
}
if
(
settings
.
success
)
{
settings
.
success
(
xhr
.
responseText
);
}
};
xhr
.
onerror
=
xhr
.
ontimeout
=
function
()
{
if
(
settings
.
afterReceive
)
{
settings
.
afterReceive
(
xhr
);
}
if
(
settings
.
error
)
{
settings
.
error
(
xhr
.
status
);
}
};
}
else
{
xhr
.
onreadystatechange
=
function
()
{
if
(
xhr
.
readyState
===
4
)
{
Ajax
.
clear
(
settings
);
...
...
@@ -248,6 +259,7 @@ Authors: Wandenberg Peixoto <wandenberg@gmail.com>, Rogério Carvalho Schneider
}
}
};
}
if
(
settings
.
beforeOpen
)
{
settings
.
beforeOpen
(
xhr
);
}
...
...
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