Flowm / satvis

Satellite orbit visualization and pass prediction with Cesium.js
https://satvis.space
MIT License
290 stars 99 forks source link

Hijacked my browser when I'm developing other WebApp use port 8080 #53

Closed zxj5470 closed 2 years ago

zxj5470 commented 2 years ago

Is there something wrong in workbox or other module?

It's what my developing WebApp shows. But shows Satellite Orbit Visualization title.

image

image

The same to Chrome browser even though I have cleaned all caches and checked F12 Network | Disable cache

zxj5470 commented 2 years ago

And I find that curl is OK, and IE browser is "OK" (though I find my app is unsupported but IE shows my App title!)

zxj5470 commented 2 years ago

Run this one in F12 console

navigator.serviceWorker.getRegistrations().then(function(registrations) {
 for(let registration of registrations) {
  registration.unregister()
} })
Flowm commented 2 years ago

This is an artifact of the service worker managed by workbox. Useful for hosting on a site but not so much for local development. I'll update the service worker init to only run in non-localhost environments.

You already found the solution, but for completeness the service worker can also be removed through the Application tab of the Chrome dev tools: https://stackoverflow.com/questions/33704791/how-do-i-uninstall-a-service-worker