Hey I am really struggeling with polymer 2.x after polymer init
my sw did not work so I decided to unregister it from
chrome://serviceworker-internals/
following to this answer after that all I get is this:
How can I enable the service worker again?
You need to add the following code in your application, after first render or whenever you want, to register the service worker:
If supported this code will register the service worker.
If you want to add in
index.html
: