aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/extension.js
blob: 6f8b5d80089d1aa881dba4a2059b605e1a77f759 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Extension.js
 *
 * A module for unifying browser differences in the WebExtension API.
 *
 * Initially implemented because Chrome hides all of their WebExtension API
 * behind a global `chrome` variable, but we'd like to start grooming
 * the code-base for cross-browser extension support.
 *
 * You can read more about the WebExtension API here:
 * https://developer.mozilla.org/en-US/Add-ons/WebExtensions
 */

const Extension = require('./extension-instance')
const instance = new Extension()
window.METAMASK_EXTENSION = instance
module.exports = instance