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

179
Views
Chrome extension: How to settimeout with update

I newbie in chrome extension and I need help in this case, I have a problem where setTimeoutis not working properly it is running crazy like this 15 sec,10 sec,1 sec,1 sec,1 sec ... I tried also to use setInterval but I got same issue

chrome.webNavigation.onErrorOccurred.addListener(info => {
if (!info.frameId && (info.error === 'net::ERR_NAME_NOT_RESOLVED' || 'net::ERR_TUNNEL_CONNECTION_FAILED')) {
console.log(info)
setTimeout(timeoutTrigger(info),15000)
}
});
function timeoutTrigger(info)
{
chrome.tabs.update(info.tabId, {url: info.url});
}
about 4 years ago · Juan Pablo Isaza
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!