mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
The XHRLoader
will now listen for ontimeout
and if triggered it will hand over to the File.onError
handler. This prevents the Loader from stalling if a file times out. Fix #6472
This commit is contained in:
parent
e920685102
commit
5bda070c98
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ var XHRLoader = function (file, globalXHRSettings)
|
|||
xhr.onload = file.onLoad.bind(file, xhr);
|
||||
xhr.onerror = file.onError.bind(file, xhr);
|
||||
xhr.onprogress = file.onProgress.bind(file);
|
||||
xhr.ontimeout = file.onError.bind(file, xhr);
|
||||
|
||||
// This is the only standard method, the ones above are browser additions (maybe not universal?)
|
||||
// xhr.onreadystatechange
|
||||
|
|
Loading…
Add table
Reference in a new issue