diff options
author | Dan Finlay <somniac@me.com> | 2016-07-22 01:45:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 01:45:32 +0800 |
commit | 6658bea8d444281491718f8eee7bc3ae42f91b69 (patch) | |
tree | 1bfc13870221528af34df95e5f64f0d73b75aa16 /app/scripts/lib/extension.js | |
parent | cdd7e40545af8e62fc586f8da120e8d05ca90653 (diff) | |
download | tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar.gz tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar.zst tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.zip |
Implement some cross-browser practices (#473)
* Add mozilla plugin key to manifest
* Move all chrome references into platform-checking module
Addresses #453
* Add chrome global back to linter blacklist
* Add tests
Diffstat (limited to 'app/scripts/lib/extension.js')
-rw-r--r-- | app/scripts/lib/extension.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/scripts/lib/extension.js b/app/scripts/lib/extension.js new file mode 100644 index 000000000..4b670490f --- /dev/null +++ b/app/scripts/lib/extension.js @@ -0,0 +1,14 @@ +/* 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') +module.exports = new Extension() |