No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to read page cookie, session and local storage in bex mode?

    Framework
    2
    2
    158
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      abhishektiwari last edited by abhishektiwari

      Hi All,
      I am new to Quasar and trying to access page cookie, session and local storage in the bex mode as popup action. I understand it involves using content-hook or dom-hook but not very clear on overall mechanics.

      When the user clicks the extension icon to open the popup, I would like to parse the page application data. I can think of using the mounted/created hook to trigger a bex event and use the content hook script to handle it. Appreciate ideas or inputs.

      1 Reply Last reply Reply Quote 0
      • Allan-EN-GB
        Allan-EN-GB Admin last edited by

        As you say, trigger a BEX event from the Quasar side and listen for it in the background hooks file.

        The cookies API is here: https://developer.chrome.com/extensions/cookies so just access that from the background hook. Look at the docs for returning data from an event in a promise based way.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post