1.0.4 • Published 10 years ago

get-manifest-external v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

get-manifest-external

Include 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.

Usage

Installation

npm install get-manifest-external --save

background.js

// require the file in background.js
require('get-manifest-external');

// or import the file into background.js (requires babel)
import 'get-manifest-external';

manifest.json

  
  ...

  "externally-connectable": {
    "matches": ["your-external-page-here"]
  }  

External page

chrome.runtime.sendMessage(<your extension key>, { message: 'getManifest' }, function(manifest) {
  console.log(manifest);
});

Why?

Can be used to check if an extension is installed as well as displaying the currently installed extension's version.

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago