I’m trying to inject JavaScript into the front side of a card (reviewQuestion, clayoutQuestion, previewQuestion). For now I just want the background to turn blue. Using the code from the official tutorial, the background turns blue only after reaching the back:
Thanks for checking. I found the problem: I have a custom timer script on the front side of my template. Since it’s only on the front side, my addon code works fine on the back side.
Without this line, everything works fine and the background immediately turns blue. But then my timer stops working. Any idea why this could prevent my addon from injecting JavaScript into the card?