Undefined chat/betrieb js functions
There are a lot of errors in sentry where "betrieb" or "chat" functions are not defined https://sentry.io/foodsaving-worldwide/foodsharingde-production-front/issues/564253797/events/.
They are used in onclick handlers, and with our new webpack method we need to export these things globally, until the code is refactored to not have onclick handlers directly in the html.
Steps to reproduce
Actually, I didn't see the error myself. The symptom would be some buttons that do not do anything but should. I can see chat/betrieb functions are used (via searching the code), and you can verify they are not exported globally by opening a js console on the site and typing "chat" or "betrieb" into it (if they were available they would show you that they are a defined as function.
What is the current bug behavior?
Oh, so many questions! (I think I added the questions actually...).
... we get sentry errors about undefined chat/betrieb.
What is the expected correct behavior?
We should get no sentry errors about undefined chat/betrieb.
Relevant error messages and/or screenshots
Export those two functions. Will file a MR shortly...