Skip to content

Commit b2e2c2a

Browse files
committed
[symfony#53153] fix merge
1 parent 55afde4 commit b2e2c2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,9 @@
550550
/* Evaluate in global scope scripts embedded inside the toolbar */
551551
var i, scripts = [].slice.call(el.querySelectorAll('script'));
552552
for (i = 0; i < scripts.length; ++i) {
553-
eval.call({}, scripts[i].firstChild.nodeValue);
553+
if (scripts[i].firstChild) {
554+
eval.call({}, scripts[i].firstChild.nodeValue);
555+
}
554556
}
555557
556558
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';

0 commit comments

Comments
 (0)