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

158
Views
putting get chrome storage local value to a dict

I need to get a local storage value outside the call, to use it in another function, I see this is an async function and outside log gets called first, but cant rly wrap how it works and why I get the value on the second call, but not it the first call. So the question is how do I get the value outside the call and make First Call work as second call ?

var Credentials = []
chrome.storage.local.get(["Key"], function(result) {
  const o = result.Key.email
  console.log("this is email", result.key.email)
  Credentials.push({"email": result.key.email})
  console.log("Second Call",Credentials[0].email)
});
console.log("First Call",Credentials[0])
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!