Skip to content

Commit fdcf741

Browse files
committed
bug #54838 [WebProfilerBundle] Fix assignment to constant variable (HypeMC)
This PR was merged into the 6.4 branch. Discussion ---------- [WebProfilerBundle] Fix assignment to constant variable | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT The current js code can trigger an error if it reaches line 83, e.g. if you click on a badge in the tab: ![image](https://github.com/symfony/symfony/assets/2445045/6ae44233-a746-43cb-a6a2-d14eda765683) ![image](https://github.com/symfony/symfony/assets/2445045/274a35db-3825-4971-9e53-badb96d83de7) Commits ------- 88a8d21 [WebProfilerBundle] Fix assignment to constant variable
2 parents 68ffeba + 88a8d21 commit fdcf741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
}
7676
7777
tab.addEventListener('click', function(e) {
78-
const activeTab = e.target || e.srcElement;
78+
let activeTab = e.target || e.srcElement;
7979
8080
/* needed because when the tab contains HTML contents, user can click */
8181
/* on any of those elements instead of their parent '<button>' element */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy