diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-26 04:46:33 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-26 04:46:33 +0800 |
commit | b07bbc14e1dc745543c7c95d6a846a789fbf2f81 (patch) | |
tree | aabd49713b98a1da1fc6be1d4af663df7120e907 /app/scripts/lib | |
parent | 0880721d84714be561d66a4767217f090a4f96ae (diff) | |
download | tangerine-wallet-browser-b07bbc14e1dc745543c7c95d6a846a789fbf2f81.tar tangerine-wallet-browser-b07bbc14e1dc745543c7c95d6a846a789fbf2f81.tar.gz tangerine-wallet-browser-b07bbc14e1dc745543c7c95d6a846a789fbf2f81.tar.bz2 tangerine-wallet-browser-b07bbc14e1dc745543c7c95d6a846a789fbf2f81.tar.lz tangerine-wallet-browser-b07bbc14e1dc745543c7c95d6a846a789fbf2f81.tar.xz tangerine-wallet-browser-b07bbc14e1dc745543c7c95d6a846a789fbf2f81.tar.zst tangerine-wallet-browser-b07bbc14e1dc745543c7c95d6a846a789fbf2f81.zip |
Clean up extension polyfill abstraction
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/extension-instance.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/scripts/lib/extension-instance.js b/app/scripts/lib/extension-instance.js index eeab6c6d0..e0e7c948b 100644 --- a/app/scripts/lib/extension-instance.js +++ b/app/scripts/lib/extension-instance.js @@ -24,14 +24,9 @@ const apis = [ function Extension () { const _this = this - let global = window - - if (window.chrome) { - global = window.chrome - } apis.forEach(function (api) { - _this[api] = global[api] + _this[api] = chrome ? chrome[api] : window[api] || browser.extension[api] }) } |