diff options
author | Frankie <frankie.diamond@gmail.com> | 2016-10-21 03:36:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 03:36:41 +0800 |
commit | 8d2ec8b820e500a936fad334ae504d5bd50d3d48 (patch) | |
tree | 35d5ba7335930106f51a3b4c00315bef92f616dc | |
parent | a88a48ba14a213920ce1becb0b70cf10192ad3e5 (diff) | |
parent | 090959470b5f308d485ea9842b2ffbb54b6b14c2 (diff) | |
download | tangerine-wallet-browser-8d2ec8b820e500a936fad334ae504d5bd50d3d48.tar tangerine-wallet-browser-8d2ec8b820e500a936fad334ae504d5bd50d3d48.tar.gz tangerine-wallet-browser-8d2ec8b820e500a936fad334ae504d5bd50d3d48.tar.bz2 tangerine-wallet-browser-8d2ec8b820e500a936fad334ae504d5bd50d3d48.tar.lz tangerine-wallet-browser-8d2ec8b820e500a936fad334ae504d5bd50d3d48.tar.xz tangerine-wallet-browser-8d2ec8b820e500a936fad334ae504d5bd50d3d48.tar.zst tangerine-wallet-browser-8d2ec8b820e500a936fad334ae504d5bd50d3d48.zip |
Merge pull request #751 from MetaMask/ClarifyCallbackRole
Add note about callback param to sync method warning
-rw-r--r-- | app/scripts/lib/inpage-provider.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js index c6bfdb4da..052a8f5fe 100644 --- a/app/scripts/lib/inpage-provider.js +++ b/app/scripts/lib/inpage-provider.js @@ -84,7 +84,7 @@ MetamaskInpageProvider.prototype.send = function (payload) { // throw not-supported Error default: 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.` + var message = `The MetaMask Web3 object does not support synchronous methods like ${payload.method} without a callback parameter. See ${link} for details.` throw new Error(message) } |