Hey martin,
I made a PR to help you based on the code here. It may not be exactly what you want. It will help you to understand how to use the new API. ![]()
https://github.com/bluefroguk1/DiscourseHeaderIcons/pull/1
Let me know if you have any questions.