So... I want to add a class to the body tag dependent on a cookie from a parent domain, and I'm sure there should be a super simple way to do it but it's late and my brain isn't working.
We have a site at example.com and flarum installed in a subdirectory discuss.example.com
site.com sets a cookie dependent on a user colour choice, with a value of true/false.
What I want to do is to add a .something class to body in Flarum (so that I can target elements within the page using css) if that cookie is set to true.
Any thoughts on the quickest, simplest way to do that?