Tent is an extension for Google Chrome allowing users to map web content to a list of annotations.
npm install jrbotros-test-tentTo switch contexts from another extension or webpage (e.g., if a user first reads an instruction page, you can set the project context from there), you can send a message to the extension with:
```
chrome.runtime.sendMessage(
EXTENSION_ID, {
data: {
contextKey: 'project-1234',
},
},
);
Make sure you configure externally_connectable in manifest.json to accept messages from the sender extension or web page.
You can get your EXTENSION_ID from the Chrome store once you've published your extension, or generate your own for development purposes only.
By default, all mapped content is stored in a default context, so if you don't need to switch contexts you can ignore the concept entirely.
and follow the web store instructions. If you want to upload a new extension zipfile, you'll need to bump the version accordingly with yarn package -- (patch|minor|major)`.