close
Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Content script execution problem? #46

@International

Description

@International

Hi!

I tried the extension and I am curious about the behaviour of the content script. I tried to run the extension on a react app, and I noticed that it could not record me typing stuff into the input box.

I've added a few console.log statements to see what's happening, and this part:

    const inputs = document.querySelectorAll('input, textarea')
    console.log('inputs', inputs)

returns 0. Basically, it means that it tries to bind the listeners before the react app has actually booted, hence no inputs exist on the page.

Is there a reason why the extension works this way? Wouldn't it be better for the content script to bind listeners only once the badge has been clicked? At least the user would be aware whether or not DOM has completely loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions