We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have tabId: "this" for this purpose:
tabId: "this"
however it only works between extension pages because:
only extension pages can use chrome.tab without intermediary steps
the current logic only handles "this" by comparing the sender to the current context, but this could be trivially changed:
"this"
on send: if isContentScript && tabId === "this" send to background on background receive: if tabId === "this" forward to this.trace[0].tab.id
webext-messenger/source/thisTarget.ts
Lines 68 to 71 in ed302a0
The text was updated successfully, but these errors were encountered:
This is no longer used/necessary after the migration to sidePanel, but it can be added in these two places if it ever becomes useful again.
sidePanel
webext-messenger/source/receiver.ts
Lines 61 to 63 in 3ac32d7
webext-messenger/source/sender.ts
Lines 299 to 300 in 3ac32d7
Sorry, something went wrong.
No branches or pull requests
We have
tabId: "this"
for this purpose:however it only works between extension pages because:
only extension pages can use chrome.tab without intermediary steps
the current logic only handles
"this"
by comparing the sender to the current context, but this could be trivially changed:webext-messenger/source/thisTarget.ts
Lines 68 to 71 in ed302a0
The text was updated successfully, but these errors were encountered: