-
I can't seem to find where/how the normal chrome.tabs api's are exposed and can only get standard window events working due to Plasmo using a shadow dom. Is there a suggested way to identify URL or page change events? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
The shadowDOM only isolates style, all API within the DOM and CS sandbox are available.
Use the bgsw. If you need to trigger events, send it down to BGSW via https://docs.plasmo.com/framework/messaging |
Beta Was this translation helpful? Give feedback.
-
thanks!! |
Beta Was this translation helpful? Give feedback.
The shadowDOM only isolates style, all API within the DOM and CS sandbox are available.
chrome.tab
APIs are not exposed in the CS context: https://developer.chrome.com/docs/extensions/reference/tabs/#overviewUse the bgsw. If you need to trigger events, send it down to BGSW via https://docs.plasmo.com/framework/messaging