Skip to content

Instantly share code, notes, and snippets.

@jessuni
Last active August 24, 2020 08:41
Show Gist options
  • Save jessuni/dbbdc8a8cc1062ab6516f069a8fec0be to your computer and use it in GitHub Desktop.
Save jessuni/dbbdc8a8cc1062ab6516f069a8fec0be to your computer and use it in GitHub Desktop.
extension-section-1-content-1
// when content script runs, notify background
const port = chrome.runtime.connect({ name: 'hello' })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment