Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!