-
Hey, sorry for spamming with questions. 😂 When I try to register a service worker in the entry like this if (!import.meta.env.SSR && 'serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js', {scope: '/'});
} I get these errors in the browser:
and in the console
Is this just not supported yet or did I do something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
m4rvr
Jun 30, 2021
Replies: 1 comment
-
My bad, the file was located in the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
m4rvr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My bad, the file was located in the
src
and not in thepublic
. It registers now without any problems.