diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-10-06 02:10:39 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-10-06 02:10:39 +0800 |
commit | d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589 (patch) | |
tree | 62ad2592862bebeac9a3477540be33086b0689c4 /app | |
parent | 5d63ab22f4b7cd80cc5b0000b559532b17e1b7dd (diff) | |
download | tangerine-wallet-browser-d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589.tar tangerine-wallet-browser-d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589.tar.gz tangerine-wallet-browser-d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589.tar.bz2 tangerine-wallet-browser-d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589.tar.lz tangerine-wallet-browser-d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589.tar.xz tangerine-wallet-browser-d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589.tar.zst tangerine-wallet-browser-d02b2c4b4a4a33d399db94fd62a5e4e7b8eb2589.zip |
Correct async link
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/inpage-provider.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js index 4f9fa1a7d..bcde333d0 100644 --- a/app/scripts/lib/inpage-provider.js +++ b/app/scripts/lib/inpage-provider.js @@ -33,7 +33,7 @@ function MetamaskInpageProvider (connectionStream) { }) asyncProvider.on('error', console.error.bind(console)) self.asyncProvider = asyncProvider - + self.idMap = {} // handle sendAsync requests via asyncProvider self.sendAsync = function(payload, cb){ @@ -61,7 +61,7 @@ function MetamaskInpageProvider (connectionStream) { MetamaskInpageProvider.prototype.send = function (payload) { const self = this - + let selectedAddress let result = null switch (payload.method) { @@ -80,8 +80,8 @@ MetamaskInpageProvider.prototype.send = function (payload) { // throw not-supported Error default: - var message = 'The MetaMask Web3 object does not support synchronous methods like ' + payload.method + - '. See https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#all-async---think-of-metamask-as-a-light-client for details.' + var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client' + var message = `The MetaMask Web3 object does not support synchronous methods like ${payload.method}. See ${link} for details.` throw new Error(message) } |