I have question my service worker script is in root folder and in my production environment it has a basepath /application/service What i have done is window.navigator.serviceWorker.register("/application/service/sw.js", {scope: "/application/service/"}) ............ It works perfectly on localhost Where scriptUrl: /sw.js and scope: / However in production controller is null .Thank you so much
Great great video. Thanks man. I’m trying to grab the code from a script.js file that is loaded into the browser when my page loads. I see it in the network tab with the other js files and I just need a way to grab the js code that lives inside that file for example when the user clicks “download javascript code for a component button” Do I need a service worker to target that js file in the network tab so I can then copy the code from it? Or is there another way? So far I’m finding nothing on google to help with this. Thanks man.
this video needs more views. Really a great video. thanks for making it :) :)
Agree, this is exactly i am looking for.
Best service worker video on youtube
I have question my service worker script is in root folder and in my production environment it has a basepath /application/service
What i have done is window.navigator.serviceWorker.register("/application/service/sw.js", {scope: "/application/service/"}) ............
It works perfectly on localhost
Where scriptUrl: /sw.js and scope: /
However in production controller is null
.Thank you so much
Great tutorial about service workers. You covered it up really well.
great video! thanks for sharing!
Great great video. Thanks man. I’m trying to grab the code from a script.js file that is loaded into the browser when my page loads. I see it in the network tab with the other js files and I just need a way to grab the js code that lives inside that file for example when the user clicks “download javascript code for a component button” Do I need a service worker to target that js file in the network tab so I can then copy the code from it? Or is there another way? So far I’m finding nothing on google to help with this. Thanks man.
thank you bro
how its work without manifest file?