Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

153
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda