In this guide, you’ll learn how to integrate ChainPatrol API into your wallet.
browser.onBeforeNavigate
APIwebNavigation
permission to your manifest.json
file:
onBeforeNavigate
event in your Background script:
browser.tabs.onUpdated
APItabs
permission to your manifest.json
:
onUpdated
event in your Background script:
manifest.json
:
window.location
object without needing to add any additional permissions.
ChainPatrol's Hosted Page
Recommended option
originUrl
query parameter to the warning page so that it can display the URL to the user.CHAINPATROL_CONTINUE_AT_OWN_RISK
message in your background script
and add the domain to a list of domains to ignore.Custom Page
Use if you want full control/branding
originUrl
query parameter: