diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-01 09:23:05 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-01 09:23:05 +0800 |
commit | 2843459fcf8bb74fba29b2ff884bf1daa7a708d2 (patch) | |
tree | 5bc1fe1775651932071d1c79136e3639c806de5b /ui | |
parent | c26a7cd89b7889bcfd0c9993e0aac1aac8e1c575 (diff) | |
download | tangerine-wallet-browser-2843459fcf8bb74fba29b2ff884bf1daa7a708d2.tar tangerine-wallet-browser-2843459fcf8bb74fba29b2ff884bf1daa7a708d2.tar.gz tangerine-wallet-browser-2843459fcf8bb74fba29b2ff884bf1daa7a708d2.tar.bz2 tangerine-wallet-browser-2843459fcf8bb74fba29b2ff884bf1daa7a708d2.tar.lz tangerine-wallet-browser-2843459fcf8bb74fba29b2ff884bf1daa7a708d2.tar.xz tangerine-wallet-browser-2843459fcf8bb74fba29b2ff884bf1daa7a708d2.tar.zst tangerine-wallet-browser-2843459fcf8bb74fba29b2ff884bf1daa7a708d2.zip |
Make info page not chrome dependent
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/info.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/app/info.js b/ui/app/info.js index 720b62d33..d97998fd7 100644 --- a/ui/app/info.js +++ b/ui/app/info.js @@ -17,7 +17,13 @@ function InfoScreen () { InfoScreen.prototype.render = function () { var state = this.props - var manifest = chrome ? chrome.runtime.getManifest() : { version: '2.0.0' } + var manifest + try { + manifest = chrome.runtime.getManifest() + } catch (e) { + manifest = { version: '2.0.0' } + } + return ( h('.flex-column.flex-grow', [ |