I'm trying to use the Service Worker but a the moment of registration I get this error:
I got that the service worker can't subscribe because the evaluation of the script failed, but I don't get why "Username" is not defined, cause if I debug it I can see the value inside it, and inside the service worker the value is passed correctly, but I can't figure out why "Username" is not defined. Help please!
This is the start and the end of the Sevice Worker:
This is the Service Worker: