Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e7ae98e1
authored
2014-09-15 16:31:00 -0700
by
Alex Rubin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix timeouts
1 parent
0337945d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
src/xhr.js
src/xhr.js
View file @
e7ae98e
...
...
@@ -42,13 +42,6 @@
request
.
withCredentials
=
true
;
}
if
(
options
.
timeout
)
{
if
(
request
.
timeout
===
0
)
{
request
.
timeout
=
options
.
timeout
;
request
.
ontimeout
=
function
()
{
request
.
timedout
=
true
;
};
}
else
{
// polyfill XHR2 by aborting after the timeout
abortTimeout
=
window
.
setTimeout
(
function
()
{
if
(
request
.
readyState
!==
4
)
{
request
.
timedout
=
true
;
...
...
@@ -56,7 +49,6 @@
}
},
options
.
timeout
);
}
}
request
.
onreadystatechange
=
function
()
{
// wait until the request completes
...
...
Please
register
or
sign in
to post a comment