WebExtension browser API Polyfill
When creating extensions you want to work in Firefox and Chrome, this library enables you to use the Firefox promise-based APIs and have them run on Google Chrome with few, if any, changes.
However, starting with Chrome 148, Chrome supports the browser namespace, except in extensions that include a DevTools page. That limitation was removed in Chrome 152 (see Chrome bug 500769389), and the browser namespace became available to all Chrome extensions.
This means that all major browsers use the browser namespace and return promises for asynchronous functions. This polyfill is a no-op in Chrome 148 and later.
If you want to enable your extension for Chrome 147 or earlier, get started by installing with npm and loading the library in the contexts where browser APIs are accessed.
Get started