Skip to content

Commit

Permalink
Merge pull request #631 from NicolasDorier/patch-1
Browse files Browse the repository at this point in the history
Removed the / of service-worker.js as it breaks reverse proxying
  • Loading branch information
RobinLinus authored Aug 31, 2024
2 parents 5cc3221 + 79c25b0 commit f88d46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ const snapdrop = new Snapdrop();


if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js')
navigator.serviceWorker.register('service-worker.js')
.then(serviceWorker => {
console.log('Service Worker registered');
window.serviceWorker = serviceWorker
Expand Down

0 comments on commit f88d46e

Please sign in to comment.