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

329
Views
Chrome extension does not work if there is an error on the site: "This site can’t be reached"

My extension stops working if the site is not available. I made two pictures using YouTube as an example:

1-youtube with access

2-youtube without access

My backround.js code:

var url = window.location.toString();
console.log(url); //chrome-error://chromewebdata/
if((url=="chrome-error://chromewebdata/") || (url=="https://www.youtube.com/")){
     console.log("This site can’t be reached");
}

When access is blocked, the var url retrieves another link(chrome-error://chromewebdata/). I made a code to work on it but it didn't help.

How can I get the extension to work on such sites?

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!