8000 Fix JS error when toolbar is reloaded · symfony/symfony@045136c · GitHub
[go: up one dir, main page]

Skip to content

Commit 045136c

Browse files
committed
Fix JS error when toolbar is reloaded
1 parent 01f51cb commit 045136c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
548548
return;
549549
}
550550
551+
if (token !== newToken) {
552+
var sfwdt = document.getElementById('sfwdt' + token);
553+
sfwdt.id='sfwdt' + newToken
554+
}
551555
that.initToolbar(newToken);
552556
553557
/* Handle toolbar-info position */

0 commit comments

Comments
 (0)
0