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

263
Vistas
Using 'browser' object in vue / quasar

I want to create an add bookmark button in my website so that users can easily bookmark my page for future reference. So, I googled a bit and found a clean way which is using the browser.bookmarks

I am currently using vue (options API) for my website. Here is my code snippet for that -

methods: {
   addBookmark() {
     const bookmark = {title: 'My Book', url: 'www.bookkay.com'}
     browser.bookmarks.create(bookmark)
  }
}

However, I am getting error that browser object is not defined.
Console Output of Error

I believe this is because browser object is not available in the scope of vue methods.

So, pls feel free to share some workarounds for this problem. Either trying to get the browser object available in vue components methods scope or an alternative way to create bookmarks using javascript.

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