On Thu Sep 15 19:38:54 2022 +0000, Gabriel Ivăncescu wrote:
Sorry, I don't understand what you mean. This function takes a string as input (e.g. "StorageEvent"), and creates an event from it. That part of the code just retrieves the event id from the Gecko event created from the string.
You never initialize event type, so I think it will always be an empty string. The type (as in event.type, not the type passed to createEvent) is not known until the event is actually dispatched.