mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
610ec2bdf5
Firefox does not support the `focused` parameter when opening a new window, and we don't actually require it for Chrome either, new popups are at the foreground by default already.
18 lines
562 B
JavaScript
18 lines
562 B
JavaScript
/* 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
|
|
|