Thread Starter
gatocb
(@gatocb)
Ok I managed to get it to work.
Your code wasn’t able to write the sw.js into my WordPress root directory due to a missing CHMOD permission.
Changed it to 777 for the sw.js creation step and went back to my old setting afterwards.
Maybe you should think about a better location for the .js, maybe the plugin directory?!