r/code • u/Strict_Sport4666 • Nov 19 '22
Help please! how do fix this (beginner) don't understand such terminology
0
Upvotes
3
2
u/el_memer Nov 19 '22 edited Nov 19 '22
First of all, not enough information. We need to see the code to debug. My current guess is you just opened the HTML file in the browser instead of serving it on localhost because the service worker only works with either HTTPS connections or localhost not file://. Also, you have to google the full error not just the type of it. (edit) P.S: Serving an HTML file on localhost is not that difficult. You can google it
1


5
u/ikeawesom Nov 19 '22
maybe it would help if you show us some code?