I am getting crazy and need your help.
I am working on a serviceworker project and I am dealing with a javascript problem. I have two main files. The server.html
Service worker is based on asynchronous and according to the article you can not access the DOM using service worked for more information read on
https://developers.google.com/web/fundamentals/primers/service-workers/