Allows a Chrome extension or App to send its manifest file to an external page
npm install get-manifest-externalInclude this file in a Chrome App or Extension's background page
and it will allow you to request the manifest file from an
external page.
bash
npm install get-manifest-external --save
`$3
`javascript
// require the file in background.js
require('get-manifest-external');// or import the file into background.js (requires babel)
import 'get-manifest-external';
`$3
`json
... "externally-connectable": {
"matches": ["your-external-page-here"]
}
`$3
`javascriptchrome.runtime.sendMessage(, { message: 'getManifest' }, function(manifest) {
console.log(manifest);
});
``