mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-11 15:03:24 -05: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 = {
|
||||
getTransport: function() {
|
||||
return Try.these(
|
||||
function() {return new XMLHttpRequest()},
|
||||
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
|
||||
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
|
||||
function() {return new XMLHttpRequest()}
|
||||
function() {return new ActiveXObject('Microsoft.XMLHTTP')}
|
||||
) || false;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user