Bug case: clicking the story DM input box to send a message triggered the extension. Displaying the extension UI also removed focus from the input, which made it impossible to message someone from a story. It's unclear what exactly was stealing focus, but the fix was easy enough to make without investigating further.
This PR updates the termination loop method in mediaAtPoint with a check for an input or textarea. If the user has clicked where there is an input, the extension will not trigger.
Bug case: clicking the story DM input box to send a message triggered the extension. Displaying the extension UI also removed focus from the input, which made it impossible to message someone from a story. It's unclear what exactly was stealing focus, but the fix was easy enough to make without investigating further.
This PR updates the termination loop method in mediaAtPoint with a check for an input or textarea. If the user has clicked where there is an input, the extension will not trigger.
Also, ran prettier.
Fixes #56