aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-01 09:23:05 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-01 09:23:05 +0800
commit2843459fcf8bb74fba29b2ff884bf1daa7a708d2 (patch)
tree5bc1fe1775651932071d1c79136e3639c806de5b
parentc26a7cd89b7889bcfd0c9993e0aac1aac8e1c575 (diff)
downloadtangerine-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
-rw-r--r--ui/app/info.js8
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', [