https://github.com/timarney/test-chrome-panel
https://github.com/timarney/test-chrome-panel
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/timarney/test-chrome-panel
- Owner: timarney
- License: mit
- Created: 2018-10-03T18:44:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-04T20:12:11.000Z (almost 8 years ago)
- Last Synced: 2025-04-09T17:08:49.778Z (about 1 year ago)
- Language: JavaScript
- Size: 103 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Info
Adds a dev tools panel for outputing state data to from an app.
## Usage
Add the following to your app and call when you update context.
```javascript
export const postToPanel = state = {} => {
const panelId = 'igmmelopebbnchhfinabogohnchgceen'
const port = chrome.runtime.connect(panelId); // eslint-disable-line
port.postMessage(state);
};
```
## To publish a new version
```
yarn build
```
Create a .zip file and upload to the Chrome store
## App page
https://chrome.google.com/webstore/detail/app-context/igmmelopebbnchhfinabogohnchgceen