mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Add note about callback param to sync method warning
This commit is contained in:
parent
a88a48ba14
commit
090959470b
@ -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)
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user