mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
browserUtil.js now works in IE6
This commit is contained in:
parent
11066d6f14
commit
6efa96883e
|
@ -80,7 +80,12 @@ browserUtil.loadScripts = function(scriptNames, cbSuccess, cbError) {
|
||||||
head.appendChild(scriptE);
|
head.appendChild(scriptE);
|
||||||
cb();
|
cb();
|
||||||
} else {
|
} else {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr;
|
||||||
|
if (window.XMLHttpRequest) {
|
||||||
|
xhr = new XMLHttpRequest;
|
||||||
|
} else if (window.ActiveXObject) {
|
||||||
|
xhr = new ActiveXObject("Microsoft.XMLHTTP");
|
||||||
|
}
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
if (xhr.readyState == 4) {
|
if (xhr.readyState == 4) {
|
||||||
if (xhr.status == 200) {
|
if (xhr.status == 200) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user