diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-10 23:36:15 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-10 23:36:15 +0800 |
commit | 24a55cf7770a6154fe723cf13cdc9998e1759f3b (patch) | |
tree | aa948c2dca68eb3f609390ccba809704ece4363b /app/scripts | |
parent | f6821781d2ee3b1562008f47d9581ed21efee3ef (diff) | |
download | tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.gz tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.bz2 tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.lz tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.xz tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.zst tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.zip |
Make the function callback friendly.
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/platforms/extension.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js index 61d67e1b4..2f47512eb 100644 --- a/app/scripts/platforms/extension.js +++ b/app/scripts/platforms/extension.js @@ -19,13 +19,13 @@ class ExtensionPlatform { getPlatformInfo (cb) { try { - return extension.runtime.getPlatformInfo(cb) + extension.runtime.getPlatformInfo((platform) => { + cb(null, platform) + }) } catch (e) { - log.debug(e) - return undefined + cb(e) } } - } module.exports = ExtensionPlatform |