mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Fix getXMLHttpRequest vs new XMLHttpRequest
I have never ever heard of getXMLHttpRequest. refs #8626
This commit is contained in:
parent
84348151ce
commit
8df9520497
@ -34,7 +34,7 @@
|
|||||||
if (navigator.userAgent.toLowerCase().indexOf('msie') !== -1) {
|
if (navigator.userAgent.toLowerCase().indexOf('msie') !== -1) {
|
||||||
document.execCommand('ClearAuthenticationCache');
|
document.execCommand('ClearAuthenticationCache');
|
||||||
} else {
|
} else {
|
||||||
var xhttp = getXMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open('GET', 'arbitrary url', true, 'logout', 'logout');
|
xhttp.open('GET', 'arbitrary url', true, 'logout', 'logout');
|
||||||
xhttp.send('');
|
xhttp.send('');
|
||||||
xhttp.abort();
|
xhttp.abort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user