FriendsOfShopware / FroshProfiler

This plugin allows you to profile your Shopware 5 application
MIT License
159 stars 41 forks source link

Avoid TypeError calling `className` on `null` #119

Closed avdv closed 3 years ago

avdv commented 3 years ago

Not a big deal, but I just noticed this error when switching tabs in the profiler.

It seems the createTabs function is called twice for whatever reason, and after it did its work (changing the element with matching .tab-title to only have class hidden) once it does not work a second time of course.

Maybe the hidden should only be added, not replace the tab-title class completely?

shyim commented 3 years ago

Thanks! :)