mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 09:42:13 +00:00
fix: remove leading slash in path for pwa worker
This commit is contained in:
parent
2523277200
commit
a7e6a23db4
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ root.render(<App />);
|
|||
|
||||
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/service-worker.js')
|
||||
navigator.serviceWorker.register('service-worker.js')
|
||||
.catch((registrationError) => {
|
||||
console.error('SW registration failed: ', registrationError);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue