mirror of
https://github.com/owntone/owntone-server.git
synced 2025-05-21 09:33:55 -04:00
Make prototype.js first test for XMLHttprequest object
and then the IE active-x thingies. This forces IE 7 to use the native XMLHttprequest object. (and debugging on gecko browsers easier)
This commit is contained in:
parent
18f72b5135
commit
4004a0f7df
4
admin-root/lib-js/prototype.js
vendored
4
admin-root/lib-js/prototype.js
vendored
@ -549,9 +549,9 @@ var $R = function(start, end, exclusive) {
|
|||||||
var Ajax = {
|
var Ajax = {
|
||||||
getTransport: function() {
|
getTransport: function() {
|
||||||
return Try.these(
|
return Try.these(
|
||||||
|
function() {return new XMLHttpRequest()},
|
||||||
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
|
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
|
||||||
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
|
function() {return new ActiveXObject('Microsoft.XMLHTTP')}
|
||||||
function() {return new XMLHttpRequest()}
|
|
||||||
) || false;
|
) || false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user