Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

message.send does not pass arguments correctly #1

Open
jacksteamdev opened this issue Feb 25, 2019 · 0 comments
Open

message.send does not pass arguments correctly #1

jacksteamdev opened this issue Feb 25, 2019 · 0 comments

Comments

@jacksteamdev
Copy link
Contributor

jacksteamdev commented Feb 25, 2019

export const send = message => {
if (isBackgroundPage()) {
const { tabId, ...msg } = message
return sendToTab(tabId, msg)
} else {
return sendFromTab(message)
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant