laozhu / hugo-nuo

🎨 A responsive light & clean hugo theme for blogger.
https://laozhu.me
MIT License
426 stars 150 forks source link

PWA not adding to home screen #111

Closed BolajiAyodeji closed 5 years ago

BolajiAyodeji commented 5 years ago

PWA not adding to home screen, I debugged in Chrome Dev Tools and got this error.

Site cannot be installed: no matching service worker detected. You may need to reload the page, or check that the service worker for the current page also controls the start URL from the manifest

What could be wrong? My manifest and service-worker was setup correctly, I can see it up in Dev Tools also

laozhu commented 5 years ago

Hi @BolajiAyodeji, I can't figure out your problem based on your error info. I test adding to home screen feature with my blog in Chrome browser (Mac), it's OK.

BTW, the service-worker.js file is here 👇

hugo-nuo/assets/service-worker.js

BolajiAyodeji commented 5 years ago

I've fixed this, thank you!