-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
I'm attempting to test my onMessage listeners, but I keep getting the error TypeError: sendResponse is not a function. It appears that the implementation of runtime.sendMessage accepts a callback as the second argument, but doesn't actually pass it to the listener.
I've also tried the MDN-recommended method of returning a promise from the onMessage listener and using .then() from runtime.sendMessage, but this doesn't work either.
My workaround thus far has been to export the listener function and hit it directly. This works but is less than ideal.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels