aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/platforms/extension.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/platforms/extension.js')
-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
}
}