Today I opened an old adapter to salvage the transformer and found this component which I also desoldered.
What is this component and what is it used for?
It seems to have a resistance of 10 Ohms as shown and it's labeled as R1, but the joule is confusing me, so I don't think it's a regular resistor. I haven't been able to find anything online.