mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
ie11 fix
This commit is contained in:
parent
299cff3ff7
commit
d27144340f
|
@ -2431,8 +2431,8 @@ function up2k_init(subtle) {
|
|||
try { orz(e); } catch (ex) { vis_exh(ex + '', 'up2k.js', '', '', ex); }
|
||||
};
|
||||
|
||||
xhr.timeout = 34000;
|
||||
xhr.open('HEAD', t.purl + uricom_enc(t.name), true);
|
||||
xhr.timeout = 34000;
|
||||
xhr.send();
|
||||
}
|
||||
|
||||
|
@ -2911,7 +2911,8 @@ function up2k_init(subtle) {
|
|||
|
||||
st.bytes.inflight += db;
|
||||
xhr.bsent = nb;
|
||||
xhr.timeout = 64000 + Date.now() - xhr.t0;
|
||||
if (!IE)
|
||||
xhr.timeout = 64000 + Date.now() - xhr.t0;
|
||||
pvis.prog(t, pcar, nb);
|
||||
};
|
||||
xhr.onload = function (xev) {
|
||||
|
@ -2959,7 +2960,7 @@ function up2k_init(subtle) {
|
|||
|
||||
xhr.bsent = 0;
|
||||
xhr.t0 = Date.now();
|
||||
xhr.timeout = 42000;
|
||||
xhr.timeout = 1000 * (IE ? 1234 : 42);
|
||||
xhr.responseType = 'text';
|
||||
xhr.send(t.fobj.slice(car, cdr));
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ var wah = '',
|
|||
CHROME = !!window.chrome, // safari=false
|
||||
VCHROME = CHROME ? 1 : 0,
|
||||
UA = '' + navigator.userAgent,
|
||||
IE = /Trident\//.test(UA),
|
||||
IE = !!document.documentMode,
|
||||
FIREFOX = ('netscape' in window) && / rv:/.test(UA),
|
||||
IPHONE = TOUCH && /iPhone|iPad|iPod/i.test(UA),
|
||||
LINUX = /Linux/.test(UA),
|
||||
|
|
Loading…
Reference in a new issue