Skip to content

[Issue] AccountSwitcher could not be constructed #79

@blobbyblo

Description

@blobbyblo

This issue was first pointed out in #78.

Steps to reproduce the behavior:

  1. Ctrl+R inside of Discord with the AccountSwitcher plugin loaded
  2. See error
  3. (Also your bug reporter is reporting some crashes to the console as well)

Additional Information:
The root of this issue is that Discord is moving towards lazy loading (see doc from mozilla).

The module you are depending on in line 118, KeyRecorder, does not get loaded until after you are in the main interface of Discord.

I suggest moving towards adding a keydown event listener as seen being used in other BD plugins I've seen. I would've opened a PR today but due to my handicap of never touching JavaScript before in my entire life, that didn't happen lmfao

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions