marcosvrs / WTF

WTF - Chrome Extension that allows you to send messages in bulk via Whatsapp™ Web
https://chrome.google.com/webstore/detail/kcdlihaidnmkenhlnofkjfoachidbnif
MIT License
64 stars 19 forks source link

Check for wf-loading class to be in the html element before injecting #28

Closed marcosvrs closed 11 months ago

marcosvrs commented 11 months ago

As a workaround on the current issue where the injection of the WPP library throws an error if the WhatsApp web app isn't completely loaded, we wait until the class wf-loading is added to the html element so we know the web app is loaded, and the WPP can be injected safely. This should work around the issue #27 while we don't have a final solution from wppconnect.

marcosvrs commented 11 months ago

@CodiumAI-Agent /review

CodiumAI-Agent commented 11 months ago

PR Analysis

How to use

Instructions > Tag me in a comment '@CodiumAI-Agent' and add one of the following commands: > **/review**: Request a review of your Pull Request. > **/describe**: Update the PR title and description based on the contents of the PR. > **/improve [--extended]**: Suggest code improvements. Extended mode provides a higher quality feedback. > **/ask \**: Ask a question about the PR. > **/update_changelog**: Update the changelog based on the PR's contents. > **/add_docs**: Generate docstring for new components introduced in the PR. > **/generate_labels**: Generate labels for the PR based on the PR's contents. > see the [tools guide](https://github.com/Codium-ai/pr-agent/blob/main/docs/TOOLS_GUIDE.md) for more details. >To edit any configuration parameter from the [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml), add --config_path=new_value. >For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." >To list the possible configuration parameters, add a **/config** comment.