aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-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', [