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

99
Vistas
How do I clear chrome.storage.sync for testing my extension?

I am making a little logic game as a chrome extension, to add a high score I wanted to use chrome.storage.sync. I want to only create a variable if it doesn't exist (the first time someone is opening the extension). To test if what I wrote works I have to clear all data for myself, how could I do that? (the documentation speaks senior developer and I am not one of those so I don't understand)

https://developer.chrome.com/docs/extensions/reference/storage/

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

chrome.storage.local.clear()

thats will Removes all items from storage.

you can also remove some keys and not all items by,

chrome.storage.local.get((data) => {
  // here you get all data and you can decide which keys to delete, 
  // in this case im deleting all keys explicitly

  chrome.storage.local.remove(Object.keys(data), resolve)
})
about 4 years ago · Juan Pablo Isaza Denunciar
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