We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55afde4 commit b2e2c2aCopy full SHA for b2e2c2a
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig
@@ -550,7 +550,9 @@
550
/* Evaluate in global scope scripts embedded inside the toolbar */
551
var i, scripts = [].slice.call(el.querySelectorAll('script'));
552
for (i = 0; i < scripts.length; ++i) {
553
- eval.call({}, scripts[i].firstChild.nodeValue);
+ if (scripts[i].firstChild) {
554
+ eval.call({}, scripts[i].firstChild.nodeValue);
555
+ }
556
}
557
558
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
0 commit comments