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

148
Views
check window location in chrome extension

So after it sets the data in the storage, I want it to refresh the page IF the current window's location is the same as the one in my matches in manifest.json

    chrome.storage.local.set({ "backgroundImage": file }, function() {
        alert("saved")
        alert(window.location.toString())

        if (window.location.toString().startsWith("https://animedao.to")) {
          chrome.tabs.reload()
        }
    })

But window.location.toString() returns my html file chrome-extension://extension id/Interface/interface.html

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!