Chrome Plugins

Chrome.runtime is available on any webpage

Use browser from webextension-polyfill]() for promise-based, cross browser support

npm install --save-dev webextension-polyfill

To get file from built folder,

browser.runtime.getURL("../myfile.html"); //relative path

Catch errors

browser.runtime.lastError.message

Keep constant Chrome-ID

Add key value to the manifest.json

  1. Go to https://chrome.google.com/webstore/developer/dashboard/ and click more Info to get the key

  2. Add that key value to your manifest.json

Last updated