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

132
Visualizações
Double service worker

I am developing an extension on manifest 3 clapping

I don’t understand how, but I very rarely get to freeze the service worker, sometimes it just doesn’t wake up (service worker (inactive)) on call, and sometimes it’s somehow duplicated(service worker \n service worker) - and in both situation only update btn via chrome://ext helps...


  • I'm init bg by: "background": {"service_worker": "js/background.js"},

  • In bg, it has only one import at 1 line: importScripts('./basic_script.js');

  • I'm still using bg as a request manager and handler for most stuff

  • 90 percent of the code is async

  • basic_script.js is used in almost all js files (I see that the bg page for some reason writes its console logs to the devtools opened from the exts local html === maybe this is the issue?)

  • basic_script.js has const request=(data)=>{return new Promise((done)=>{ with AbortController() + fetch.then.catch combo-wombo


I can't get repeatability, once this chrome bug(?) met me after a while, today I got it almost immediately... I just update the local pages(chrome), and the background dies completely and turns off the main ability of my extension :(

I can't google/find any, because I'm stupid

about 4 years ago · Santiago Trujillo
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