Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

155
Visualizações
How to stop (not unregister) a running service worker like in chrome dev tools

In google dev tools -> Application -> Service Workers there is an option to unregister a service worker. If you do this the status of this service worker will also change to stopped.

When I unregister the service worker programmatically from the console with something like await (await navigator.serviceWorker.getRegistrations())[0].unregister() I get a true from the promise, so the service worker was unregistered. But the status in dev tools does not change into stopped. How can I programmatically stop the service worker like the dev tools are doing it when clicking Unregister or stop.

The service worker I am working with is created with create-reac-app / workbox. Find a basic example here: https://pwa-cra.vercel.app/

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda