X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=gitweb%2Fgitweb.js;h=9c66928c4af8cf37b9c13a6a40936523e16fcc6f;hb=39b5977b1391b0ee1fdfecf04955c32192f64936;hp=2a25b7cc470a25572e8741803b4e7124933feff5;hpb=c214f2c80c70c2a3803bf1f3efc323cee5496024;p=git.git diff --git a/gitweb/gitweb.js b/gitweb/gitweb.js index 2a25b7cc4..9c66928c4 100644 --- a/gitweb/gitweb.js +++ b/gitweb/gitweb.js @@ -779,7 +779,12 @@ function handleResponse() { } // the server returned error - if (xhr.readyState === 3 && xhr.status !== 200) { + // try ... catch block is to work around bug in IE8 + try { + if (xhr.readyState === 3 && xhr.status !== 200) { + return; + } + } catch (e) { return; } if (xhr.readyState === 4 && xhr.status !== 200) {