mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
Merge pull request #372 from Stremio/fix/pwa-worker-relative-path
fix: remove leading slash in path for pwa worker
This commit is contained in:
commit
478e86a4bb
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