Closed Warr1024 closed 2 years ago
Thanks for the finding! The js should use only relative paths. Would be fixed for the next minor release.
Should be fixed in devel and in the v8.2.0 branch. Can you test?
I couldn't get the v8.2.0 branch to load at all. I got an error calling dispose on an undefined thing, added a null guard to it, but then now get an error about trying to get classList from undefined that I can't trace. It seems like the js code doesn't work when initially loading the site, only if the page was already initialized.
Bug is also fixed in devel you can try this branch.
Tested in f50473df and it works.
Greate!
myMPD version: 8.1.3
Describe the bug
When myMPD is running behind a reverse proxy with path prefix, (e.g. a /mympd/ that's stripped off by the proxy) then the service worker is not installed, and thus the PWA is not installable under Chrome.
Potential fix
I was able to make the app installable by just replacing the absolute paths hard-coded into client js with relative ones in line https://github.com/jcorporation/myMPD/blob/master/htdocs/js/mympd.js#L439, and I can submit a PR if this fix is acceptable.
To Reproduce
Expected behavior
Observed behavior
Server plattform (please complete the following information):
Client plattform (please complete the following information):