Primeira tentativa de componente. Tentei criar um Nav Button Highlighter. Ainda não está funcionando

I wanted to turn any nav links, or all nav links, into buttons. In my case so users would see and want to click the ones i want them to click.

Also to take them out of the drop down menu on mobile as that’s fine navigation if they aren’t a key path you want users to take, but when it is one you’d want it not tucked away in there, so i tried to give them their own line on mobile.

As someone else might want to use it i’ve attempted to turn it into a proper component repo, but unfortunately i wasn’t able to get the highlight working. Can anyone with a bit more experience see something i’ve missed?

Here’s something I see at a glance: you should move your script to a dedicated initializer file, in javascripts/discourse/api-initializers/script.js.