Closed bogomazov closed 6 months ago
now its working, idk why it was null at a time
turned out its there, just don't log the object itself (it erases these values afterwards so it shows null in the console)
On Thu, Jun 20, 2024 at 12:07 PM Leo Ukraincik @.***> wrote:
How was this fixed, I'm still having this issue
— Reply to this email directly, view it on GitHub https://github.com/serversideup/webext-bridge/issues/87#issuecomment-2180302894, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSRRWC46NVPXNEEPADGUG3ZIKSUJAVCNFSM6AAAAABHX56O5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQGMYDEOBZGQ . You are receiving this because you modified the open/close state.Message ID: @.***>
I just faced the same issue. I have freeze the sender object via Object.freeze
and traced back to the source. @bogomazov maybe it is fine to re-open the issue.
https://github.com/serversideup/webext-bridge/blob/main/src/background.ts#L160-L162
I'm not sure why is it being overriden though. @zikaari maybe you can share some insights?
Version
^6.0.1
Current Behavior
sender in background onMessage has no tabId and frameId
Expected Behavior
tabId and frameId to be present
Steps To Reproduce
on Chrome. Create onMessage in background script and
await sendMessage(destination, data, "background")
from content scriptAnything else?
No response