One of the greatest feature of PWA Extension is adding editable Service Worker File.
This adds a big value if you want to customize service worker for your needs.
Follow steps :
- Go to Plugins
- Search for PWA
- You will see : System - PWA Progressive Web App
- Click on to the title and visit plugin admin panel.
- Go to Section / Tab "Extras"
- Find parameter "Add custom css" and swith it to "YES"
- or Find parameter "Add custom js" and swith it to "YES"
- New fields opens automatically : "CustomCSS" and "Custom JS"
- Add your code to the text areas
- Click to "SAVE" and do this one more time to safe the creation
Now your new custom css or custom js codes will run!!!
You can check it via URL : https://www.your-site-url-here.com/pwaextension-service-worker.js