Skip to content

Commit

Permalink
[WebProfilerBundle] Do not display toolbar loading result if it's not…
Browse files Browse the repository at this point in the history
… a valid toolbar
  • Loading branch information
Seldaek committed Jun 21, 2011
1 parent 406c8d8 commit abd60ac
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -11,7 +11,7 @@
xhr.open('GET', '{{ path("_wdt", { "token": token }) }}', true);
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.onreadystatechange = function(state) {
if (4 === xhr.readyState && 200 === xhr.status) {
if (4 === xhr.readyState && 200 === xhr.status && '<!-- START' === xhr.responseText.substring(0, 10)) {
wdt.innerHTML = xhr.responseText;
wdt.style.display = 'block';
}
Expand Down

0 comments on commit abd60ac

Please sign in to comment.