Skip to content

How to identifying URL/location change #391

Answered by louisgv
djakaitis asked this question in Q&A
Discussion options

You must be logged in to vote

due to Plasmo using a shadow dom.

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/#overview

Is there a suggested way to identify URL or page change events?

Use the bgsw. If you need to trigger events, send it down to BGSW via https://docs.plasmo.com/framework/messaging

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
13 replies
@robertsamarji
Comment options

@flexchar
Comment options

@robertsamarji
Comment options

@flexchar
Comment options

@robertsamarji
Comment options

Answer selected by djakaitis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants