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 ac3141a commit 22d7420Copy full SHA for 22d7420
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig
@@ -547,7 +547,9 @@ if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
547
/* Evaluate in global scope scripts embedded inside the toolbar */
548
var i, scripts = [].slice.call(el.querySelectorAll('script'));
549
for (i = 0; i < scripts.length; ++i) {
550
- eval.call({}, scripts[i].firstChild.nodeValue);
+ if (scripts[i].firstChild) {
551
+ eval.call({}, scripts[i].firstChild.nodeValue);
552
+ }
553
}
554
555
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
0 commit comments