Skip to content

Commit 7d13728

Browse files
committed
Skip openhandler urls
Check if openHandler is set, skip handling of the XHR for that url.
1 parent fb364c7 commit 7d13728

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DebugBar/Resources/debugbar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
10911091
XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
10921092
var xhr = this;
10931093
this.addEventListener("readystatechange", function() {
1094-
if (xhr.readyState == 4) {
1094+
var skipUrl = self.debugbar.openHandler ? self.debugbar.openHandler.get('url') : null;
1095+
if (xhr.readyState == 4 && url.indexOf(skipUrl) !== 0) {
10951096
self.handle(xhr);
10961097
}
10971098
}, false);

0 commit comments

Comments
 (0)