aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/platforms/extension.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-11-16 04:39:34 +0800
committerGitHub <noreply@github.com>2017-11-16 04:39:34 +0800
commitfbd04a6af6e9eda22eebaae27d712ae08272c131 (patch)
treebbb643e10e42d8113fe2d67d78efccd56b92322c /app/scripts/platforms/extension.js
parentf8d38f44c2612f0f291063814ec0e98bb4aaf4bb (diff)
parent03968ffafe27e64dcdf58764057cee1d67aa4168 (diff)
downloadtangerine-wallet-browser-fbd04a6af6e9eda22eebaae27d712ae08272c131.tar
tangerine-wallet-browser-fbd04a6af6e9eda22eebaae27d712ae08272c131.tar.gz
tangerine-wallet-browser-fbd04a6af6e9eda22eebaae27d712ae08272c131.tar.bz2
tangerine-wallet-browser-fbd04a6af6e9eda22eebaae27d712ae08272c131.tar.lz
tangerine-wallet-browser-fbd04a6af6e9eda22eebaae27d712ae08272c131.tar.xz
tangerine-wallet-browser-fbd04a6af6e9eda22eebaae27d712ae08272c131.tar.zst
tangerine-wallet-browser-fbd04a6af6e9eda22eebaae27d712ae08272c131.zip
Merge pull request #2590 from MetaMask/merge-master
Merge master
Diffstat (limited to 'app/scripts/platforms/extension.js')
-rw-r--r--app/scripts/platforms/extension.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
index 0afe04b74..2f47512eb 100644
--- a/app/scripts/platforms/extension.js
+++ b/app/scripts/platforms/extension.js
@@ -17,6 +17,15 @@ class ExtensionPlatform {
return extension.runtime.getManifest().version
}
+ getPlatformInfo (cb) {
+ try {
+ extension.runtime.getPlatformInfo((platform) => {
+ cb(null, platform)
+ })
+ } catch (e) {
+ cb(e)
+ }
+ }
}
module.exports = ExtensionPlatform