diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-06 08:13:58 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-06 08:13:58 +0800 |
commit | 106af9ec5b5671ec312117b1e2bd0ba5350d2085 (patch) | |
tree | 196a5ca8af5a92faabed2519f1999501c9c985d8 /app/scripts/platforms | |
parent | b9012a62e5df372a9cd5309e345b5f5ff0230e38 (diff) | |
download | tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar.gz tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.tar.zst tangerine-wallet-browser-106af9ec5b5671ec312117b1e2bd0ba5350d2085.zip |
Catch an error if this is not defined.
Diffstat (limited to 'app/scripts/platforms')
-rw-r--r-- | app/scripts/platforms/extension.js | 9 |
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 } } |