aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-10-06 08:13:58 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-10-06 08:13:58 +0800
commit106af9ec5b5671ec312117b1e2bd0ba5350d2085 (patch)
tree196a5ca8af5a92faabed2519f1999501c9c985d8 /app
parentb9012a62e5df372a9cd5309e345b5f5ff0230e38 (diff)
downloadtangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar
tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar.gz
tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar.bz2
tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar.lz
tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar.xz
tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar.zst
tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.zip
Catch an error if this is not defined.
Diffstat (limited to 'app')
-rw-r--r--app/scripts/platforms/extension.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
index 5ed2fdc4f..f9e1d84b7 100644
--- a/app/scripts/platforms/extension.js
+++ b/app/scripts/platforms/extension.js
@@ -18,7 +18,14 @@ class ExtensionPlatform {
}
getPlatformInfo (cb) {
- return extension.runtime.getPlatformInfo(cb)
+ var info
+ try {
+ info = extension.runtime.getPlatformInfo(cb)
+ } catch (e) {
+ log.debug(e)
+ info = undefined
+ }
+ return info
}
}