Skip to content

Commit 81953eb

Browse files
authored
Merge pull request #1931 from REJack/toolbar-ie11-fix
Toolbar IE11 fix
2 parents d2f8c42 + feb4914 commit 81953eb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

system/Debug/Toolbar/Views/toolbarloader.js.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ function loadDoc(time) {
6161
}
6262

6363
// Track all AJAX requests
64-
var oldXHR = window.XMLHttpRequest;
64+
if (window.ActiveXObject) {
65+
var oldXHR = new ActiveXObject('Microsoft.XMLHTTP');
66+
} else {
67+
var oldXHR = window.XMLHttpRequest;
68+
}
6569

6670
function newXHR() {
6771
var realXHR = new oldXHR();

0 commit comments

Comments
 (0)