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

273
Views
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
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!